#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Date range sum

Hi:
I need to find a specific date range i.e. 06/01/06 - 06/30/06, then add the
sum of the values in another column. I tried the if formula and then the
date value but I got a #value error. Here's where I'm at: If the date range
H2 to H522 is in the 06/01/06 to 06/30/06 range, then add the figures in
cells I2 to I522.
=if(H2:H522,"06/01/06:06/30/06",I2:I522) Can you help?
--
Marg R.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Date range sum

=SUMPRODUCT(--(H2:H522=--"6/1/2006"),--(H2:H522<=--"6/30/2006"),I2:I522)


"Marg" wrote:

Hi:
I need to find a specific date range i.e. 06/01/06 - 06/30/06, then add the
sum of the values in another column. I tried the if formula and then the
date value but I got a #value error. Here's where I'm at: If the date range
H2 to H522 is in the 06/01/06 to 06/30/06 range, then add the figures in
cells I2 to I522.
=if(H2:H522,"06/01/06:06/30/06",I2:I522) Can you help?
--
Marg R.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 174
Default Date range sum

If you're always summing for a whole calendar month then perhaps this

=SUMPRODUCT(--(H2:H522-DAY(H2:H522)+1=J2),I2:I522)

where J2 contains the first day of the month in question, e.g. 1st June 2006

"Teethless mama" wrote:

=SUMPRODUCT(--(H2:H522=--"6/1/2006"),--(H2:H522<=--"6/30/2006"),I2:I522)


"Marg" wrote:

Hi:
I need to find a specific date range i.e. 06/01/06 - 06/30/06, then add the
sum of the values in another column. I tried the if formula and then the
date value but I got a #value error. Here's where I'm at: If the date range
H2 to H522 is in the 06/01/06 to 06/30/06 range, then add the figures in
cells I2 to I522.
=if(H2:H522,"06/01/06:06/30/06",I2:I522) Can you help?
--
Marg R.

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
finding earliest date within a range by employee Steve Excel Worksheet Functions 4 October 20th 06 12:34 AM
Advanced filter a dynamic date range oneandoneis2 Excel Worksheet Functions 2 April 6th 06 09:57 AM
Crate group of date, with Dynamic Range in pivot table not working Tiya Excel Discussion (Misc queries) 3 March 1st 06 03:26 PM
Date Range within one cell Cachod1 New Users to Excel 5 October 18th 05 04:30 AM
Date Range and calculation vgreen Excel Worksheet Functions 2 August 23rd 05 12:08 PM


All times are GMT +1. The time now is 12:01 PM.

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"