Add and count

Add up numbers for one year

=SUMPRODUCT((YEAR(A2:A4)=E2)*B2:B4)

How it works in Excel

The idea in general

Sort the receipts into one year's pile, then add up that pile.

What I assumed

Check the result on your own data before relying on it.

Related

Ask another question