Dear all,
I hope one of you can help me with designing a formula which gives me the highest average of 6 continuous values within a row containing approximately 250 values.
Thx
Dear all,
I hope one of you can help me with designing a formula which gives me the highest average of 6 continuous values within a row containing approximately 250 values.
Thx
Iwhole range is populated with number, e.g. in a single row A2:IP2 then this formula will give the highest avreage of 6 consecutive
=MAX(SUBTOTAL(1,OFFSET(A2,,ROW(INDIRECT("1:245")),1,6)))
confirmed with CTRL+SHIFT+ENTER
Audere est facere
Thanks daddylonglegs for your help!!
I would like to do the same trick with data arranged in a column. I guessed I could use a similar formula set up. Nevertheless I can't really figure it out.
The formula for my previous question became: =(MAX(SUBTOTAL(1,OFFSET(A2,,ROW(INDIRECT("1:257")),1,6))))
The data in the column which a want to analyse in a similar way is arranged from E8 till E265. I came up with the formula: =(MAX(SUBTOTAL(1,OFFSET(E8,,COLUMN(INDIRECT("8:265")),1,6)))) but then he gives the erro #DIV/0! I guess I went wrong with "8:265".
Thx again.
check what the arguments of 'offset' mean:
=(MAX(SUBTOTAL(1,OFFSET(E8,,COLUMN(INDIRECT("8:265")),6,1))))
snb thx for your reply!
I don't really understand what you mean with: "check what the arguments of 'offset' mean", if you mean the explanation of excell what OFFSET does; returns a reference to a range that is a given number of rows and columns from a given reference. I checked it but then I still don't really get what I have to do/change in my formula (sorry I am not so known with excel and its terms)
The small change (switching 1 and 6) you did in the formula did not change the out come of my on formula (still #DIV/0!)
So I guess I do something wrong with OFFSET? Can you explain me about the arguments of OFFSET?
Thx
probably
NB offset has 5 arguments.PHP Code:
=MAX(SUBTOTAL(1,OFFSET(E8,row(INDIRECT("1:242")),,6,1)))
Last edited by snb; 11-23-2011 at 06:46 AM.
Thx daddylonglegs and snp for helping me out! I think found the right formula now.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks