#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Consequtive total

I'm looking for a forumla that will tell me the best 7 days of a series of
data. I have a SS of the past daily values (roughly 5 years) for my division
and need to know which 7 consequtive days were the greatest in total.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Consequtive total

Hi,

I'm sure there must be a better way because this is a bit long winded but it
does return the sum of the 7 highest consecutive values in the range a1- a100
which you can change to suit.

=SUMPRODUCT(MAX(A1:A100+OFFSET(A1:A100,1,0)+OFFSET (A1:A100,2,0)+OFFSET(A1:A100,3,0)+OFFSET(A1:A100,4 ,0)+OFFSET(A1:A100,5,0)+OFFSET(A1:A100,6,0)))

Mike

"jbrain" wrote:

I'm looking for a forumla that will tell me the best 7 days of a series of
data. I have a SS of the past daily values (roughly 5 years) for my division
and need to know which 7 consequtive days were the greatest in total.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Consequtive total

Try one of these:

Assume the range is A1:A100.

=SUMPRODUCT(MAX(A1:A94+A2:A95+A3:A96+A4:A97+A5:A98 +A6:A99+A7:A100))

Or, this array formula** :

=MAX(SUBTOTAL(9,OFFSET(A1,ROW(A1:INDEX(A:A,ROWS(A1 :A100)-7+1))-1,,7,)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Mike H" wrote in message
...
Hi,

I'm sure there must be a better way because this is a bit long winded but
it
does return the sum of the 7 highest consecutive values in the range a1-
a100
which you can change to suit.

=SUMPRODUCT(MAX(A1:A100+OFFSET(A1:A100,1,0)+OFFSET (A1:A100,2,0)+OFFSET(A1:A100,3,0)+OFFSET(A1:A100,4 ,0)+OFFSET(A1:A100,5,0)+OFFSET(A1:A100,6,0)))

Mike

"jbrain" wrote:

I'm looking for a forumla that will tell me the best 7 days of a series
of
data. I have a SS of the past daily values (roughly 5 years) for my
division
and need to know which 7 consequtive days were the greatest in total.



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
Excel 2002 : Any single button to get sub total and grand total ? Mr. Low Excel Discussion (Misc queries) 2 May 22nd 07 08:46 AM
Total column changes colors when total equals sum of other columns newstacy New Users to Excel 1 April 21st 07 09:00 PM
calculate count on 2006 total, 2005 total, etc... Amanda Deshotel Excel Worksheet Functions 6 September 28th 06 11:59 PM
Pivots - Auto calc % Sub total is of grand total VBA Noob Excel Discussion (Misc queries) 3 August 8th 06 08:46 PM
Adding Data Using Multiple Worksheets to Total into a Grand Total Lillie Excel Worksheet Functions 1 April 19th 05 08:34 PM


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