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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,443
Messages
6,124,890
Members
449,194
Latest member
JayEggleton

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