總和 指定月往上月數 (13555)

G2=SUMPRODUCT(SUMIF(B:B,"<="&E2-IF({1,0},,F2),C:C)*{1,-1})

H2=SUMIF(B:B,"<="&E2,C:C)-SUMIF(B:B,"<="&E2-F2,C:C)



留言