Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Danbmarine
 
Posts: n/a
Default finding a range of dates to total

I have a sheet with many dates and I want to search for date ranges in
monthly intervals then total all cells next to the date. for example:

=SUMIF(H:H,DATE(2006,1,1):(2006,1,31),I:I)
for the month of january--however this formula is incorrect.

Does anyone know a correct one to use?

Thanks in advance,
Dan
  #2   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default finding a range of dates to total

Try...

=SUMIF(H:H,"="&DATE(2006,1,1),I:I)-SUMIF(H:H,""&DATE(2006,1,31))

or

=SUMPRODUCT(--(H1:H100=DATE(2006,1,1)),--(I1:I100<=DATE(2006,1,31)))

Note that SUMPRODUCT does not accept whole column references.

Hope this helps!

In article ,
"Danbmarine" wrote:

I have a sheet with many dates and I want to search for date ranges in
monthly intervals then total all cells next to the date. for example:

=SUMIF(H:H,DATE(2006,1,1):(2006,1,31),I:I)
for the month of january--however this formula is incorrect.

Does anyone know a correct one to use?

Thanks in advance,
Dan

  #3   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default finding a range of dates to total

Try this:

=SUMPRODUCT((H1:H1000=DATE(2006,1,1))*(H1:H1000<= DATE(2006,1,31)),I1:I1000)

HTH
JG

"Danbmarine" wrote:

I have a sheet with many dates and I want to search for date ranges in
monthly intervals then total all cells next to the date. for example:

=SUMIF(H:H,DATE(2006,1,1):(2006,1,31),I:I)
for the month of january--however this formula is incorrect.

Does anyone know a correct one to use?

Thanks in advance,
Dan

  #4   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default finding a range of dates to total

Either

=SUMPRODUCT(--(H1:H65535=DATE(2006,1,1)),--(H1:H65535<=DATE(2006,1,31)),I1:I65535)

Or
=SUMIF(H:H,"="&DATE(2006,1,1),I:I) - SUMIF(H:H,""&DATE(2006,1,31),I:I)

"Danbmarine" wrote:

I have a sheet with many dates and I want to search for date ranges in
monthly intervals then total all cells next to the date. for example:

=SUMIF(H:H,DATE(2006,1,1):(2006,1,31),I:I)
for the month of january--however this formula is incorrect.

Does anyone know a correct one to use?

Thanks in advance,
Dan

  #5   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default finding a range of dates to total

Another way:

=SUMPRODUCT((MONTH(H1:H1000)=1)*(YEAR(H1:H1000)=20 06),I1:I1000)

HTH
JG

"JMB" wrote:

Either

=SUMPRODUCT(--(H1:H65535=DATE(2006,1,1)),--(H1:H65535<=DATE(2006,1,31)),I1:I65535)

Or
=SUMIF(H:H,"="&DATE(2006,1,1),I:I) - SUMIF(H:H,""&DATE(2006,1,31),I:I)

"Danbmarine" wrote:

I have a sheet with many dates and I want to search for date ranges in
monthly intervals then total all cells next to the date. for example:

=SUMIF(H:H,DATE(2006,1,1):(2006,1,31),I:I)
for the month of january--however this formula is incorrect.

Does anyone know a correct one to use?

Thanks in advance,
Dan



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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
How do I count in a range of dates? nancy Excel Worksheet Functions 2 November 23rd 05 11:03 AM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
count date occurances in range of dates... Alex Excel Worksheet Functions 2 July 27th 05 04:15 PM
Finding min/max of adjacent data in a range of cells Paul987 Excel Worksheet Functions 5 July 15th 05 08:02 PM


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