=IF(DATEDIF(SUBSTITUTE(LEFT(A2,FIND("-",A2)-1),".","/"),SUBSTITUTE(MID(A2,FIND("-",A2)+1,19),".","/"),"md")=30,TEXT(DATEDIF(SUBSTITUTE(LEFT(A2,FIND("-",A2)-1),".","/"),SUBSTITUTE(MID(A2,FIND("-",A2)+1,19),".","/"),"ym")+1,"[>0]0个月;"),IF(DATEDIF(SUBSTITUTE(LEFT(A2,FIND("-",A2)-1),".","/"),SUBSTITUTE(MID(A2,FIND("-",A2)+1,19),".","/"),"md")=0,TEXT(DATEDIF(SUBSTITUTE(LEFT(A2,FIND("-",A2)-1),".","/"),SUBSTITUTE(MID(A2,FIND("-",A2)+1,19),".","/"),"ym"),"[>0]0个月;")&"1天",TEXT(DATEDIF(SUBSTITUTE(LEFT(A2,FIND("-",A2)-1),".","/"),SUBSTITUTE(MID(A2,FIND("-",A2)+1,19),".","/"),"ym"),"[>0]0个月;")&TEXT(DATEDIF(SUBSTITUTE(LEFT(A2,FIND("-",A2)-1),".","/"),SUBSTITUTE(MID(A2,FIND("-",A2)+1,19),".","/"),"md"),"[>0]0天;"))) |