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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula help: Use sheetName as a variable 1

Status
Not open for further replies.

dswitzer

Technical User
Aug 2, 2002
298
US
I have a summary page that looks up various pieces of data in other pages (same workbook). I would like to copy the formulas down instead of editing (or find/replace although that is an option).

For example:

sheetName formula
sheet1 =if(sheet1!A1=sheet1!A2,"OK","ERR")
sheet2

If I copy the formula down to the next cell, I want sheet1 replaced by sheet2 (the value in the cell to the left).

Hopefully that made sense...

Thanks.



 



Hi,

Take a look at the INDIRECT function. Concatenate the sheet name and the cell reference.

Skip,

[glasses] [red][/red]
[tongue]
 
Yep - that'll do it. Not exactly a function I would have looked at by name but it makes sense now...

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top