Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula to sum for different date ranges

I need a formula to total for quarterly date ranges. For example: if a
payment was received during 4/1/08 - 6/30/08 sum the payments.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula to sum for different date ranges

Use cells to hold the date boundries.

Date in A1:A10
Values to sum in B1:B10

D1 = lower date boundary = 4/1/2008
E1 = upper date boundary = 6/30/2008

Then:

=SUMIF(A1:A10,"="&D1,B1:B10)-SUMIF(A1:A10,""&E1,B1:B10)

Format as General or Number

--
Biff
Microsoft Excel MVP


"confused in tn" <confused in wrote in message
...
I need a formula to total for quarterly date ranges. For example: if a
payment was received during 4/1/08 - 6/30/08 sum the payments.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,073
Default Formula to sum for different date ranges

On Dec 1, 2:27 pm, confused in tn <confused in
wrote:
I need a formula to total for quarterly date ranges. For example: if a
payment was received during 4/1/08 - 6/30/08 sum the payments.


One way, assuming payment dates are in A2:A1000 and payment amounts
are in B2:B1000...

=SUMPRODUCT(--($A$2:$A$1000=DATE(2008,4,1)),--($A$2:$A$1000<=DATE
(2008,6,30)),$B$2:$B$1000)

Ken Johnson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula to sum for different date ranges

Can I use the entire columns instead of a range of cells for the dates and
the payments?

"Ken Johnson" wrote:

On Dec 1, 2:27 pm, confused in tn <confused in
wrote:
I need a formula to total for quarterly date ranges. For example: if a
payment was received during 4/1/08 - 6/30/08 sum the payments.


One way, assuming payment dates are in A2:A1000 and payment amounts
are in B2:B1000...

=SUMPRODUCT(--($A$2:$A$1000=DATE(2008,4,1)),--($A$2:$A$1000<=DATE
(2008,6,30)),$B$2:$B$1000)

Ken Johnson

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula to sum for different date ranges

If you're using Excel 2007 you can. If you're not using Excel 2007 you can
use entire columns with the SUMIF version but not the SUMPRODUCT version.

--
Biff
Microsoft Excel MVP


"confused in tn" wrote in message
...
Can I use the entire columns instead of a range of cells for the dates and
the payments?

"Ken Johnson" wrote:

On Dec 1, 2:27 pm, confused in tn <confused in
wrote:
I need a formula to total for quarterly date ranges. For example: if
a
payment was received during 4/1/08 - 6/30/08 sum the payments.


One way, assuming payment dates are in A2:A1000 and payment amounts
are in B2:B1000...

=SUMPRODUCT(--($A$2:$A$1000=DATE(2008,4,1)),--($A$2:$A$1000<=DATE
(2008,6,30)),$B$2:$B$1000)

Ken Johnson



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 copy formula that contains ranges so ranges do not overlap Patty Excel Worksheet Functions 1 November 20th 08 04:15 PM
Number of days in overlapping date ranges (using array formula?) ajnmx Excel Worksheet Functions 7 August 29th 08 11:21 AM
compare date to various date ranges and sum value al Excel Worksheet Functions 2 January 10th 07 10:17 AM
Date ranges in a sum formula Marcus Caterino Excel Worksheet Functions 2 June 26th 06 10:44 PM
sum of date ranges Tanya Excel Worksheet Functions 1 January 4th 05 04:11 AM


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