ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   variable reference ranges (https://www.excelbanter.com/excel-discussion-misc-queries/158231-variable-reference-ranges.html)

sc

variable reference ranges
 
Hi - I want to write a formulae where the reference range is variable. For
example, =average(c3:c(3+variable number)). I would really like to do this
by referencing another cell for the variable number. Is this possible, I
have tried a number of approaches but am getting no joy.
Thanks
SC.

JMB

variable reference ranges
 
=AVERAGE(C3:INDEX(C:C, 3+C1))

where C1 contains your variable number.

"SC" wrote:

Hi - I want to write a formulae where the reference range is variable. For
example, =average(c3:c(3+variable number)). I would really like to do this
by referencing another cell for the variable number. Is this possible, I
have tried a number of approaches but am getting no joy.
Thanks
SC.


sc

variable reference ranges
 
Awesome!

"JMB" wrote:

=AVERAGE(C3:INDEX(C:C, 3+C1))

where C1 contains your variable number.

"SC" wrote:

Hi - I want to write a formulae where the reference range is variable. For
example, =average(c3:c(3+variable number)). I would really like to do this
by referencing another cell for the variable number. Is this possible, I
have tried a number of approaches but am getting no joy.
Thanks
SC.



All times are GMT +1. The time now is 08:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com