Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default condition sumif commands based on date range?

How do I structure sumif commands based on a range of dates in an adjacent
column?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default condition sumif commands based on date range?

Checkout the SUMIFS function, allows multiple ifs.

"joek8724" wrote:

How do I structure sumif commands based on a range of dates in an adjacent
column?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default condition sumif commands based on date range?

One way...

For all versions of Excel.

A1:A20 = dates
B1:B20 = values to sum

The best way to do this is to use 2 cells to hold the date boundaries.

D1 = start date = 1/25/2008
E1 = end date = 3/17/2008

Sum is inclusive of start and end dates.

=SUMIF(A1:A20,"="&D1,B1:B20)-SUMIF(A1:A20,""&E1,B1:B20)

Or, you can hard code the dates:

=SUMIF(A1:A20,"="&DATE(2008,1,25),B1:B20)-SUMIF(A1:A20,""&DATE(2008,3,17),B1:B20)

For Excel 2007.

=SUMIFS(B1:B20,A1:A20,"="&D1,A1:A20,"<="&E1)

=SUMIFS(B1:B20,A1:A20,"="&DATE(2008,1,25),A1:A20, "<="&DATE(2008,3,17))


--
Biff
Microsoft Excel MVP


"joek8724" wrote in message
...
How do I structure sumif commands based on a range of dates in an adjacent
column?



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
Search for Condition, Text based, Date Range, Occurrences NickNameGoesHere Excel Worksheet Functions 1 March 18th 08 04:11 PM
I want to use sumif to sum up a column based on a range of dates Ricky from Pine Island Excel Worksheet Functions 2 April 13th 07 03:04 PM
display date based on condition eesh New Users to Excel 1 February 26th 07 07:53 AM
SUMIF within date range as a function of today()'s date irvine79 Excel Worksheet Functions 8 August 6th 06 05:55 PM
sumif based on date Todd Excel Worksheet Functions 7 January 25th 06 03:24 AM


All times are GMT +1. The time now is 04:35 PM.

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"