AVERAGE EVERY 10 ROWS

YahooGoogle

New Member
Joined
Nov 7, 2017
Messages
14
Office Version
  1. 2007
I have a spreadsheet with two tabs that keeps wins information for cases I work on for my job. The "Winners" tab has all the info and the "Summary" tab summarizes it all. Within the "Winners" tab, I have it broken up by a days, and each day has 10 lines attributed to it. For example, day 1 starts at the top from line 2 and goes until line 11. Day 3 from line 12 to 21, Day 3 from line 22 to 31 and so on until Day 50 which ranges from line 492 to 501. I would like to find the average for each day's wins, which is found in Column T (so every 10 lines starting from T2), but I would like to have it displayed in the "Summary" tab (instead of the "Winners" tab where the actual information is located). I managed to find the following formula:

=AVERAGE(OFFSET('Winners'!T2:T11,(ROW()-ROW(Summary!H2))*10,,10,))

This formula gives me the correct figure for the first 10 rows (day 1), but then when I drag it down to the subsequent cells beneath it simply repeats the same answer for every cell. Is there anything wrong with my formula that is causing it to calculate the same day 1 answer over and over again instead of picking up the next 10 day batch? Also, certain days don't have a full 10 lines worth of data, meaning there's some empty cells as you go down the column, would that contribute to the problem?

Thanks in advance
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You need to lock the row numbers:
=AVERAGE(OFFSET(Winners!T$2:T$11,(ROW()-ROW(H$2))*10,,10)), or
=AVERAGE(OFFSET(Winners!T$2:T$11,(ROWS(H$2:H2)-1)*10,,10))

Alternatively, you could use the non-volatile:
=AVERAGE(INDEX(Winners!T:T,ROWS(H$2:H2)*10-8):INDEX(Winners!T:T,ROWS(H$2:H2)*10+1))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,150
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top