如何在每个月的 1 日对上个月 excel 中的值求和

How to sum values in excel on 1st of each month for the previous month excel

已经尝试过 SUMIF AND SUMIFS 和 SUMproduct 不能正常工作

我需要在 2 月 1 日支付 amt 中所有储蓄的总和

使用:

=IF(INT(A2)=EOMONTH(A2,-1)+1,SUMIFS($C:C2,$A:A2,">="&EOMONTH(A2,-2)+1,$A:A2,"<"&EOMONTH(A2,-1)+1),0)

=IF(INT(A2)=EOMONTH(A2,-1)+1,SUMIFS($C$2:C2,$A$2:A2,">="&EOMONTH(A2,-2)+1 ,$A$2:A2,"<"&EOMONTH(A2,-1)+1),0)

感谢@Scott Craner