Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
sc sc is offline
external usenet poster
 
Posts: 28
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
sc sc is offline
external usenet poster
 
Posts: 28
Default 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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting Variable Data Ranges rc Excel Discussion (Misc queries) 2 May 18th 07 09:26 PM
Sorts on variable ranges bman342 Excel Worksheet Functions 1 June 28th 06 09:46 PM
Variable ranges John Contact Excel Worksheet Functions 1 June 17th 05 09:02 AM
Sum Variable Ranges Erika Excel Worksheet Functions 6 December 23rd 04 04:52 PM
Variable Print Ranges Zshepherd Excel Discussion (Misc queries) 0 December 2nd 04 04:23 PM


All times are GMT +1. The time now is 01:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"