setting a range automatically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i need to execute a formula on a column of data that is growing. how can i
automatically accomodate this growing range ?

=AVERAGE(A1:A10) with A10 increasing

any suggestions would be appreciated

brian
 
You could Highlight the entire A column and enter a name into the Name box
Like MyRange then change your formula to this
=AVERAGE(MyRange)
 
Hi Mike

Could you advise if I was to do this in a Macro what would the command be ?

Thanks

Brian
 
Hi

should have added that i may want the range to start at A5 and omit the
first 4 rows

Cheers

brian
 
You might want to consider using a Dynamic Range Name, which automatically
expands and contracts to accomodate the data (and without VBA code).

See Debra Dalgleish's website for instructions;
http://www.contextures.com/xlNames01.html#Dynamic

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top