Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default sumproduct with dates

I have a quarterly time series and I always want to sum the last three
quartes of a year and the first of the next year and I can't think of a
simple way to do it.
e.g.
A B
31/3/2005 1000
30/6/2005 3500
30/9/2005 6790
31/12/2005 8000
31/3/2006 9000

So I would want to add quarters 6, 9 and 12 of 2005 and 3 of 2006 in this
case but in general quarters 6, 9, 12 of year xxxx and 3 of year xxxx+1
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default sumproduct with dates


with year in C1 i.e. 2005:

=SUMPRODUCT(--(MONTH(A1:A5)3),--(YEAR(A1:A5)=C1),(B1:B5))+SUMPRODUCT(--(MONTH(A1:A5)=3),--(YEAR(A1:A5)=C1+1),(B1:B5))

HTH

"Bumblebee" wrote:

I have a quarterly time series and I always want to sum the last three
quartes of a year and the first of the next year and I can't think of a
simple way to do it.
e.g.
A B
31/3/2005 1000
30/6/2005 3500
30/9/2005 6790
31/12/2005 8000
31/3/2006 9000

So I would want to add quarters 6, 9 and 12 of 2005 and 3 of 2006 in this
case but in general quarters 6, 9, 12 of year xxxx and 3 of year xxxx+1

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default sumproduct with dates

thank you, it worked

"Toppers" wrote:


with year in C1 i.e. 2005:

=SUMPRODUCT(--(MONTH(A1:A5)3),--(YEAR(A1:A5)=C1),(B1:B5))+SUMPRODUCT(--(MONTH(A1:A5)=3),--(YEAR(A1:A5)=C1+1),(B1:B5))

HTH

"Bumblebee" wrote:

I have a quarterly time series and I always want to sum the last three
quartes of a year and the first of the next year and I can't think of a
simple way to do it.
e.g.
A B
31/3/2005 1000
30/6/2005 3500
30/9/2005 6790
31/12/2005 8000
31/3/2006 9000

So I would want to add quarters 6, 9 and 12 of 2005 and 3 of 2006 in this
case but in general quarters 6, 9, 12 of year xxxx and 3 of year xxxx+1

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
Pre-1900 dates Richard Gadsden Excel Discussion (Misc queries) 1 March 26th 06 12:46 AM
Need to pull current dates from list w/many dates mcilpuf Excel Discussion (Misc queries) 4 February 20th 06 09:05 AM
Default Dates Sue Excel Discussion (Misc queries) 1 July 22nd 05 12:29 PM
sumproduct between two dates chased Excel Worksheet Functions 4 July 8th 05 05:24 PM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM


All times are GMT +1. The time now is 11:52 AM.

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"