Define end of range based on another cell value (offset?)

Vexorg

Board Regular
Joined
Oct 5, 2010
Messages
116
Hello,

I am trying to average a range of cells (F37:F'X'). I want 'X' to be defined by the number in cell B16. For example, if B16=10, the range that is averaged should be: Average(F37:F47).

How do I do this?

I assume its something along the lines of Average(Offset(F37,-B16,0) however this does not seem to work?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try:


=AVERAGE(INDIRECT("F37:F" & 37 + B16))
 
Upvote 0
To avoid volatile functions, try something like this:
Code:
=AVERAGE(F37:INDEX(F:F,37+B16-1))
Is that something you can work with?
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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