fixing formula

namsilat

New Member
Joined
Mar 8, 2011
Messages
13
Imagine I have a spread sheet with 10 numbers in cells A1 to A10, and I have a formula lined up at B1 to calculate average of these 10 numbers. I then insert a row (say between A5 and A6), the formula at B1 now calculates average of 11 numbers in A1 to A11. How can I change the formula in B1 to "fix" it, such that it continues to calculate average of just first 10 numbers from A1 to A10, and not affected by inserting or deleting rows? I thought about using AVERAGE($A$1:$A$10), but if I copy the the formula to B2, it would just calculate average of A1 to A10 instead of A2 to A11.
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Sorry, i misread your post.

Maybe creating a named range, say MyRange, with the formula in Refers To
=INDIRECT("Sheet1!$A$1:$A$10")

and in B1
=AVERAGE(OFFSET(MyRange,ROW()-1,0))
copy down

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,742
Members
448,989
Latest member
mariah3

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