Simple Question

rki1966

Active Member
I am using an average function which averages the first year. I have the following fucntion in cell FO1
Average(f1:q1) and I want to copy the cell to the right so it will now average the next 12 cells. Average(r1:ac1):

Any suggestions

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

pgc01

MrExcel MVP
Hi rki1966

Try in FO1:

=AVERAGE(OFFSET(\$F\$1,0,12*(COLUMN()-COLUMN(\$FO\$1)),1,12))

Hope this helps
PGC

rki1966

Active Member
that worked great, can you do it with {product(1+F1:q1)-1}?

pgc01

MrExcel MVP
Hi

For the product, try in FO1:

=PRODUCT(1+OFFSET(\$F\$1,0,12*(-1+COLUMNS(\$FO\$1:FO1)),1,12))-1
confirmed with CTRL+SHIFT+ENTER.

Hope it works
PGC

rki1966

Active Member
The formula works great but when I try to copy the formula down, it does not change the ranges. I tried to use the f4. It looks like I can either copy down or to the right.

Any suggestions

pgc01

MrExcel MVP
Hi rki1966

Try unfreezing the row:

=PRODUCT(1+OFFSET(\$F1,0,12*(-1+COLUMNS(\$FO1:FO1)),1,12))-1
confirmed with CTRL+SHIFT+ENTER.

PGC

Replies
4
Views
532
Replies
11
Views
477
Replies
4
Views
202
Replies
26
Views
480
Replies
2
Views
323

1,186,326
Messages
5,957,228
Members
438,294
Latest member
Soikeo79

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.

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

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