答案1
使用以下公式C2
:
=IFERROR(IF(ISBLANK(A3),SUM(B$2:B2)-SUM(C$1:C1),IF(MATCH(A2,{"Mon","Tue","Wed","Thu","Fri","Sat","Sun"},)>MATCH(A3,{"Mon","Tue","Wed","Thu","Fri","Sat","Sun"},),SUM(B$2:B2)-SUM(C$1:C1),"")),"")
并填充下来
使用以下公式C2
:
=IFERROR(IF(ISBLANK(A3),SUM(B$2:B2)-SUM(C$1:C1),IF(MATCH(A2,{"Mon","Tue","Wed","Thu","Fri","Sat","Sun"},)>MATCH(A3,{"Mon","Tue","Wed","Thu","Fri","Sat","Sun"},),SUM(B$2:B2)-SUM(C$1:C1),"")),"")
并填充下来