Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Sum for given date range for given item - can't find this for the life of me

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Sum for given date range for given item - solved

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
To find rate of each item from item.xls and to copy price.xls pol Excel Discussion (Misc queries) 7 July 16th 09 12:49 AM
Find Last cell in Range when range is date format default105 Excel Discussion (Misc queries) 5 July 7th 09 03:11 PM
how do i find multiple matches of one data item in an excel range DivaHouston Excel Discussion (Misc queries) 1 January 7th 08 02:43 PM
sum item within certain date range kwong Excel Discussion (Misc queries) 3 August 15th 05 11:46 AM
Find date and copy range based on that date avzundert Excel Programming 2 November 25th 04 10:31 AM


All times are GMT +1. The time now is 07:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"