EXCEL日期相减20210129

TEXT(SUBSTITUTE(MID(G20,1,FIND("午",G20,1)-3),"-","/"),"yyyy/mm/dd")&" " &TEXT(--MID(MID(G20,FIND("午",G20)-1,20),3,20)+0.5*IF(--MID(MID(G20,FIND("午",G20)-1,20),3,20)>0.5,IF(LEFT(MID(G20,FIND("午",G20)-1,20),2)="上午",-1,0),IF(LEFT(MID(G20,FIND("午",G20)-1,20),2)="上午",0,1)),"h:mm")

image.png

INT(E10)&"天"&INT((E10-INT(E10))24)&"小时"&ROUND(((E10-INT(E10))24-INT((E10-INT(E10))24))60,0)&"分钟"

image.png

你可能感兴趣的:(EXCEL日期相减20210129)