Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Summing data between two date criteria

=SUMPRODUCT(--(I6:I250<DATE(2009,1,1)),--(ISNUMBER(I6:I250)),J6:J250)

I am using this formula to calcuate the number of square footage with an
expiration date less than 1/1/09 (some of the cells contain the value
"month-to-month").

I now need to write this same formula for expiration dates between 1/1/09
and 6/30/09.

How do I get multiple date parameters - I keep getting errors trying to use
the AND function.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Summing data between two date criteria

=SUMPRODUCT(--(I6:I250=DATE(2009,1,1)),--(I6:I250<=DATE(2009,6,30)),J6:J250)


"Anna Wood" wrote:

=SUMPRODUCT(--(I6:I250<DATE(2009,1,1)),--(ISNUMBER(I6:I250)),J6:J250)

I am using this formula to calcuate the number of square footage with an
expiration date less than 1/1/09 (some of the cells contain the value
"month-to-month").

I now need to write this same formula for expiration dates between 1/1/09
and 6/30/09.

How do I get multiple date parameters - I keep getting errors trying to use
the AND function.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Summing data between two date criteria

Use cells to hold your date boundaries:

A1 = lower date boundary
B1 = upper date boundary

Then:

=SUMPRODUCT(--(I6:I250=A1),--(I6:I250<=B1),--(ISNUMBER(I6:I250)),J6:J250)

You may not need the --(ISNUMBER(I6:I250)) test. Try removing and see if it
works.

--
Biff
Microsoft Excel MVP


"Anna Wood" wrote:

=SUMPRODUCT(--(I6:I250<DATE(2009,1,1)),--(ISNUMBER(I6:I250)),J6:J250)

I am using this formula to calcuate the number of square footage with an
expiration date less than 1/1/09 (some of the cells contain the value
"month-to-month").

I now need to write this same formula for expiration dates between 1/1/09
and 6/30/09.

How do I get multiple date parameters - I keep getting errors trying to use
the AND function.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Summing data between two date criteria

If I remove the ISNUMBER, the formula results in 278,025. With the ISNUMBER,
the formula results in 10,000. 10,000 is the correct number.

Thank you for your help in adding the second date to the formula.

"T. Valko" wrote:

Use cells to hold your date boundaries:

A1 = lower date boundary
B1 = upper date boundary

Then:

=SUMPRODUCT(--(I6:I250=A1),--(I6:I250<=B1),--(ISNUMBER(I6:I250)),J6:J250)

You may not need the --(ISNUMBER(I6:I250)) test. Try removing and see if it
works.

--
Biff
Microsoft Excel MVP


"Anna Wood" wrote:

=SUMPRODUCT(--(I6:I250<DATE(2009,1,1)),--(ISNUMBER(I6:I250)),J6:J250)

I am using this formula to calcuate the number of square footage with an
expiration date less than 1/1/09 (some of the cells contain the value
"month-to-month").

I now need to write this same formula for expiration dates between 1/1/09
and 6/30/09.

How do I get multiple date parameters - I keep getting errors trying to use
the AND function.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Summing data between two date criteria

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Anna Wood" wrote:

If I remove the ISNUMBER, the formula results in 278,025. With the ISNUMBER,
the formula results in 10,000. 10,000 is the correct number.

Thank you for your help in adding the second date to the formula.

"T. Valko" wrote:

Use cells to hold your date boundaries:

A1 = lower date boundary
B1 = upper date boundary

Then:

=SUMPRODUCT(--(I6:I250=A1),--(I6:I250<=B1),--(ISNUMBER(I6:I250)),J6:J250)

You may not need the --(ISNUMBER(I6:I250)) test. Try removing and see if it
works.

--
Biff
Microsoft Excel MVP


"Anna Wood" wrote:

=SUMPRODUCT(--(I6:I250<DATE(2009,1,1)),--(ISNUMBER(I6:I250)),J6:J250)

I am using this formula to calcuate the number of square footage with an
expiration date less than 1/1/09 (some of the cells contain the value
"month-to-month").

I now need to write this same formula for expiration dates between 1/1/09
and 6/30/09.

How do I get multiple date parameters - I keep getting errors trying to use
the AND function.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default Summing data between two date criteria

Hi,

ISNUMBER wasn't needed in your original formula, nor in the suggests you
recieved.

Your original could be
=SUMPRODUCT(--(I6:I250<DATE(2009,6,1)),J6:J250)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Anna Wood" wrote:

=SUMPRODUCT(--(I6:I250<DATE(2009,1,1)),--(ISNUMBER(I6:I250)),J6:J250)

I am using this formula to calcuate the number of square footage with an
expiration date less than 1/1/09 (some of the cells contain the value
"month-to-month").

I now need to write this same formula for expiration dates between 1/1/09
and 6/30/09.

How do I get multiple date parameters - I keep getting errors trying to use
the AND function.

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
2 Criteria Summing CurtPDX Excel Worksheet Functions 3 February 24th 09 07:06 PM
Summing/Counting Data in One Column Based on Criteria Another Col agilek9 Excel Worksheet Functions 2 November 6th 08 10:24 PM
Summing Data by date from different tables Sarahbeth Excel Worksheet Functions 3 June 22nd 07 05:38 AM
summing values in a data table based on criteria in another column Dave F Excel Worksheet Functions 7 August 26th 06 04:36 PM
Summing data based on criteria Wendy Excel Discussion (Misc queries) 2 August 1st 06 04:07 PM


All times are GMT +1. The time now is 06:13 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"