Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

Sum select cells based on date range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chad - 04 Mar 2008 17:59 GMT
Here's the table I have

Date         # Days Open
02/01/2008    3
02/01/2008    2
02/05/2008    3
02/11/2008    1
02/11/2008    1
02/12/2008    14
02/15/2008    8
02/18/2008    2
02/18/2008    4
02/20/2008    4
02/21/2008    15
02/22/2008    1
02/26/2008    4
02/27/2008    9
02/27/2008    8
02/29/2008    1
02/29/2008    13

Date is manually input, # days open is calced using networkdays and another
manually input date.

Out of this table, I can count how many items fall within a date range based
using sumproduct.  What I need to be able to do is sum the days that
fallwithin a date range.  For example, the first date range is 02/01/2008 to
02/10/2008.  I know there are 3 items there, but I want to add up the 3, 2,
and 3 for that range.

I have cell references indicating the date range I wish to use.  What would
I add on to this formula to sumup the # days open for the given date range?  
I'm using the formula =SUMPRODUCT((J9:J26>=AM102)*(J9:J26<=AM103)) to
determine the # of items in the date range (date ranges in col AM).  I should
come up with 8 for the date range of 02/01/2008 to 02/10/2008.

Thanks in advance for any help.
PCLIVE - 04 Mar 2008 18:08 GMT
I prefer my SUMPRODUCTs this way.

=SUMPRODUCT(--(J9:J26>=AM102),--(J9:J26<=AM103),K9:K26)

HTH,
Paul

> Here's the table I have
>
[quoted text clipped - 40 lines]
>
> Thanks in advance for any help.
Chad - 04 Mar 2008 18:21 GMT
Thanks!  worked like a charm!

> I prefer my SUMPRODUCTs this way.
>
[quoted text clipped - 47 lines]
> >
> > Thanks in advance for any help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.