I have 2 worksheets: Summary
and SERVER-ONE
.
In cell A5
on the Summary worksheet, I have added the value SERVER-ONE
.
Next to it, in cell B5
, I would like a formula that uses the value in A5
to display the value of G7
in the worksheet of the same name (SERVER-ONE
).
I could manually use:
='SERVER-ONE'!G7
However I would like this to be dynamic, so I can easily add more worksheets.
I tried the obvious with no joy:
='A5'!G7
Any suggestions?
This will only work to column Z, but you can drag this horizontally and vertically.
not sure if you solved your question, but I found this worked to increment the row number upon dragging.
Where B1 refers to an index number, starting at 0.
So if you copy-drag both the index cell and the cell with the indirect formula, you'll increment the indirect. You could probably create a more elegant counter with the Index function too.
Hope this helps.
By using the
ROW()
function I can drag this formula vertically. It can also be dragged horizontally since there is no$
before theD
.My layout has sheet names as column headers (
B2
,C2
,D2
, etc.) and maps multiple row values from ColumnB
in each sheet.You can use the formula
INDIRECT()
.This basically takes a string and treats it as a reference. In your case, you would use:
The double quotes are to show that what's inside are strings, and only
A5
here is a reference.INDIRECT is the function you want to use. Like so:
With INDIRECT you can build your formula as a text string.
You need
INDIRECT
function: