I have two columns, one with a date and one with values, and I want to sum up all cells, where the year of the date is the desired year. My problem is, that I have headers in the table, and I don't want to manually define first and last rows to consider, but to take all rows...
This fails with #VALUE! error:
=SUMPRODUCT((YEAR(C:C)=2015)*(E:E))
This works:
=SUMPRODUCT((YEAR(C2:C1000)=2015)*(E2:E1000))
In C1 and E1 I have headers (text). They are formatted as text and in simple formulas that's enough to have them excluded from the formula, but this is not working with the SUMPRODUCT...
Is there a better solution?