Forum Discussion
baylism
May 16, 2019Copper Contributor
Changing cell reference in a formula using contents of another cell
Hello All, I have a spreadsheet with 3 tabs, Sheet1, Sheet2 and Sheet3. On Sheet3 I have lots of cells with formulas that refer to cells in Sheet1. Suppose I now want them all to refer to Sheet2 i...
baylism
May 16, 2019Copper Contributor
Detlef_Lewin I read about indiect() before, and it seems to be a bit different. If I have 27 in cell B2, and 'B2' in cell A1, then indirect(A1) looks in A1, finds 'B2' and gives me the value 27.
I want it to look at a cell which contains text, and embed that text into a cell reference. ie, the text in A1 is a sheet name, and I write xxxxx - A1 xxxx B10 in a cell, and it returns the value in sheet 'A1' cell B10.
Detlef_Lewin
May 16, 2019Silver Contributor
INDIRECT() is designed to convert text into a reference. Pleasesee the support page for the function.
=INDIRECT("'"&A1&"'!B10")This concatenates the value in A1 with some additional text to become the following reference.
'Sheet1'!B10