Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Don.
I was about to post my solution: =SUMPRODUCT((F8:F38=C2)*(F8:F38<D2)*(G8:G38="appl es")*(H8:H38)) C2 = Start Date D2 = End Date Don Guillett wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
To find rate of each item from item.xls and to copy price.xls | Excel Discussion (Misc queries) | |||
Find Last cell in Range when range is date format | Excel Discussion (Misc queries) | |||
how do i find multiple matches of one data item in an excel range | Excel Discussion (Misc queries) | |||
sum item within certain date range | Excel Discussion (Misc queries) | |||
Find date and copy range based on that date | Excel Programming |