View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Sum for given date range for given item - can't find this for the life of me

one way
=SUMPRODUCT((MONTH(F1:F6)=9)*(DAY(F1:F6)={1,2})*(G 1:G6="apples")*H1:H6)

--
Don Guillett
SalesAid Software

"Finny" wrote in message
oups.com...
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.