Averaging across sequences of cells?

dohja

New Member
Joined
May 30, 2015
Messages
2
Hello,

I want to take averages of every few cells. For example, I might want to take the average of a1, b1, c1, then have the next cell take the average of d1, e1, f1, then the next take g1, h1, i1. However, when I use the average function, for example =average(a1, b1, c1), and drag the cell, the next cell will take the averages of b1, c1, d1 instead of c1, d1, e1.

Is there a solution to this?

PS: I am actually taking a much more complicated cell range average, but I do not think that is the problem; the problem is with how the cells are moved when the formula is dragged. However, if it might make a difference, the actual formula I am using is:
=AVERAGE(INDEX(Data!B24:$LGW24, ROWS(B5:B5)-1 + COLUMNS(B5:B5)), INDEX(Data!B24:$LGW24, ROWS(B5:B5)*7+COLUMNS(B5:B5)), INDEX(Data!B24:$LGW24, ROWS(B5:B5)*14+COLUMNS(B5:B5)))
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

RudiS

Active Member
Joined
May 7, 2015
Messages
349
Something to test...

Type: =AVERAGE(A1:C1) into cell C2
Type: =AVERAGE(D1:F1) into cell F2

Then select A1:F1 and autofill the selection across row 2. This will average each set of three cells as specified in your OP.
 

dohja

New Member
Joined
May 30, 2015
Messages
2
Something to test...

Type: =AVERAGE(A1:C1) into cell C2
Type: =AVERAGE(D1:F1) into cell F2

Then select A1:F1 and autofill the selection across row 2. This will average each set of three cells as specified in your OP.

well, I can't do that because of how the data is structured in the table: I don't have the blank space within the table to do it given how much data there are. But I did find a solution: multiply the index rows by the number of offsets, found by dividing the index of the column by the number of cells to be averaged.

Thanks for your advice!
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Hello,

I want to take averages of every few cells. For example, I might want to take the average of a1, b1, c1, then have the next cell take the average of d1, e1, f1, then the next take g1, h1, i1. However, when I use the average function, for example =average(a1, b1, c1), and drag the cell, the next cell will take the averages of b1, c1, d1 instead of c1, d1, e1.

Is there a solution to this?
[...]

Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
1​
2​
3​
4​
5​
6​
7​
0.2​
0.4​
0.6​
4​
4​
4​
2​
Avg:
3​
3​
4​
6​
5​
0.4​
6​
4​

A3, copied down:
Rich (BB code):

=AVERAGE(INDEX($A$1:$L$1,0,(ROWS(A$3:A3)-1)*3+1):INDEX($A$1:$L$1,0,
     (ROWS(A$3:A3))*3))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,577
Messages
5,838,194
Members
430,534
Latest member
chacc

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
Top