xld
Banned
- Joined
- Feb 8, 2003
- Messages
- 5,378
When you know the syntax, you can do it in 10 seconds without helper column.
=SUMPRODUCT(--(MONTH($B$7:$B$81)=MONTH(DATEVALUE(1&"/"&B84&"/"&1))))
Much simpler to ditch the DATEVALUE stuff
=SUMPRODUCT(--(MONTH($B$7:$B$81)=B84))
(will give #VALUE if some cell is not a date: to avoid the problem you could add ISNUMBER)
That won't work, you need to outsort the non-dates with an SUM(IF array formula.