#1   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default cumulative totals

I have a spreadsheet as follows:
A B C
date MD902 40
date MD902 30
date BO105 20
date BO105 10
and so on between rows 6 to 20006

I would like to be able to produce the total of column 'C' for the last 6
month of MD902 and BO105.
--
AOU
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default cumulative totals

Try this,

=SUMPRODUCT((A1:A100=DATE(YEAR(TODAY()), MONTH(TODAY())-6,
DAY(TODAY())))*(B1:B100="MD902")*(C1:C100))

Change A1:A100 etc to match your range
You might also consider referring to a cell for MD902 instead of having the
search string within the formula.

Mike

"AOU" wrote:

I have a spreadsheet as follows:
A B C
date MD902 40
date MD902 30
date BO105 20
date BO105 10
and so on between rows 6 to 20006

I would like to be able to produce the total of column 'C' for the last 6
month of MD902 and BO105.
--
AOU

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default cumulative totals

try:

=SUMPRODUCT(--(MONTH($A$1:$A$50)=2)*($B$1:$B$50={"MD902","BO105 "})*($C$1:$C$50))


assuming last 6 months is data from February onwards and there is only one
year.

Or using 183 days as 6 months

=SUMPRODUCT(--($A$1:$A$50=TODAY()-183)*($B$1:$B$50={"MD902","BO105"})*($C$1:$C$50))


"AOU" wrote:

I have a spreadsheet as follows:
A B C
date MD902 40
date MD902 30
date BO105 20
date BO105 10
and so on between rows 6 to 20006

I would like to be able to produce the total of column 'C' for the last 6
month of MD902 and BO105.
--
AOU

  #4   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default cumulative totals

Thanks very much, it works fine. Just to add to this question.....How would I
use this formular to fine out 3 days and 7 days as well.
Thanks very miuch
--
AOU


"Mike H" wrote:

Try this,

=SUMPRODUCT((A1:A100=DATE(YEAR(TODAY()), MONTH(TODAY())-6,
DAY(TODAY())))*(B1:B100="MD902")*(C1:C100))

Change A1:A100 etc to match your range
You might also consider referring to a cell for MD902 instead of having the
search string within the formula.

Mike

"AOU" wrote:

I have a spreadsheet as follows:
A B C
date MD902 40
date MD902 30
date BO105 20
date BO105 10
and so on between rows 6 to 20006

I would like to be able to produce the total of column 'C' for the last 6
month of MD902 and BO105.
--
AOU

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
CUMULATIVE TOTALS George Excel Discussion (Misc queries) 0 November 17th 06 08:04 PM
Pivot Table groups & cumulative totals laureleaw Excel Discussion (Misc queries) 0 April 26th 06 08:53 PM
Charting: Displaying cumulative totals at top of stacked columns Jean Charts and Charting in Excel 1 February 14th 06 01:30 PM
cumulative totals in a workbook YvonneAsthma Excel Worksheet Functions 1 February 9th 06 04:12 AM
How to make cumulative totals appear on a graph Arlen Excel Discussion (Misc queries) 1 January 17th 05 08:59 PM


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