I have an Excel table like this
date (A) value (B)
1 2012-09-01 1
2 2012-09-02 2
3 2012-10-01 5
I want to sum the values if the month and year are of the same as the current date.
The expected result would be 3 in the example.
I tried
=SUM((MONTH(A1:A3)=MONTH(TODAY()))*B1:B3)
but the result is 0.
=SUM(IF(MONTH(A1:A3)=MONTH(NOW()),1,0)*B1:B3)This does what you said, and you have to enter this formula as array formula by typing ctrl+shift+enter, not just enter.