Simple Question

rki1966

Active Member
Joined
Feb 1, 2004
Messages
351
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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi rki1966

Try in FO1:

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

Hope this helps
PGC
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi

I'm glad it worked.

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
Joined
Feb 1, 2004
Messages
351
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
Joined
Apr 25, 2006
Messages
19,884
Hi rki1966

Try unfreezing the row:

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

Please try it
PGC
 

Forum statistics

Threads
1,136,616
Messages
5,676,831
Members
419,653
Latest member
analyticalchemist94

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