Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I build a formula where I am calculating cell addresses 1

Status
Not open for further replies.

crawfme

Technical User
Oct 11, 2007
24
CA
I want to be able to build an "average" formula where I am calculating the value of the beginning and ending row to use in the formula. For example, if the formula I want is =AVERAGE(A2:A7) I want to be able to build the formula and calculate the values 2 and 7. If there was a formula in cell C1 that equalled 2 and a formula in cell C2 that equalled 7, then I was thinking I could do something like:

=AVERAGE("A"&C1&":A"&C2)

or

=AVERAGE("A"&TEXT(C1,0)&":A"&TEXT(C2,0))

but neither one works.

Does anyone know how to do this?
 




Hi,

Take a look at the INDIRECT function.

Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top