Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Sum select cells based on date range

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.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Sum select cells based on date range

I prefer my SUMPRODUCTs this way.

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

HTH,
Paul

--

"Chad" wrote in message
...
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.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Sum select cells based on date range

Thanks! worked like a charm!

"PCLIVE" wrote:

I prefer my SUMPRODUCTs this way.

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

HTH,
Paul

--

"Chad" wrote in message
...
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.




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
display a range of cells editible cells based on matching date Miki Excel Worksheet Functions 0 October 10th 07 03:27 PM
Auto Sum a Range of Cells based on the date jcpotwor Excel Discussion (Misc queries) 3 January 17th 07 07:20 PM
how can I select a range of cells based on a value of a cell? grigoras victor Excel Discussion (Misc queries) 1 June 26th 06 04:55 PM
Select cell from range based on input in excel xp dingy101 Excel Discussion (Misc queries) 3 November 20th 05 12:05 AM
Count cells based on date range in another column [email protected] New Users to Excel 1 May 5th 05 08:11 PM


All times are GMT +1. The time now is 12:16 AM.

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

About Us

"It's about Microsoft Excel"