为增加公式的通用性,考虑到上午、下午、晚上有两组时间段的可能,所以公式编写的有点长。
如果累计项是在F列,在F2单元格输入公式=TEXT((IFERROR(MID(C2,FIND("-",C2)+1,5)-MID(C2,1,FIND("-",C2)-1),0))+((IFERROR(MID(C2,FIND("@",SUBSTITUTE(C2,"-","@",2))+1,5),0)-IFERROR(MID(C2,FIND(" ",C2)+1,FIND("@",SUBSTITUTE(C2,"-","@",2))-1-FIND(" ",C2)),0)))+(IFERROR(MID(D2,FIND("-",D2)+1,5)-MID(D2,1,FIND("-",D2)-1),0))+((IFERROR(MID(D2,FIND("@",SUBSTITUTE(D2,"-","@",2))+1,5),0)-IFERROR(MID(D2,FIND(" ",D2)+1,FIND("@",SUBSTITUTE(D2,"-","@",2))-1-FIND(" ",D2)),0)))+(IFERROR(MID(E2,FIND("-",E2)+1,5)-MID(E2,1,FIND("-",E2)-1),0))+((IFERROR(MID(E2,FIND("@",SUBSTITUTE(E2,"-","@",2))+1,5),0)-IFERROR(MID(E2,FIND(" ",E2)+1,FIND("@",SUBSTITUTE(E2,"-","@",2))-1-FIND(" ",E2)),0))),"h小时m分钟")
下拉公式。 如图:
2019-05-12
麻烦讲解数值怎么输入?图上面时间求和