Sum for given date range for given item - can't find this for the life of me

  • Thread starter Thread starter Finny
  • Start date Start date
F

Finny

I've got a simple problem but the solution is alluding me.
Simply:
A B C
Sept 1 | Apples | 3
Sept 1 | Oranges | 5
Sept 2 | Apples | 2
Sept 2 | Oranges | 4
Sept 3 | Apples | 3
Sept 3 | Oranges | 8

ex.
I need to sum how many apples I've sold for a given date range (Sept 1
to Sept 2 inclusive).

I can sumif by date, or drill down to a given sale, but to sum I can't
figure out.

Thanks in advance for any help.
 
Thanks Don.
I was about to post my solution:
=SUMPRODUCT((F8:F38>=C2)*(F8:F38<D2)*(G8:G38="apples")*(H8:H38))
C2 = Start Date
D2 = End Date
 
Either works
=SUMPRODUCT((F8:F38>=C2)*(F8:F38<D2)*(G8:G38="apples")*(H8:H38))
or
=SUMPRODUCT((F8:F38>=C2)*(F8:F38<D2)*(G8:G38="apples")*H8:H38)
 
Back
Top