I have formula which I'm using to dynamically create formulas to reference data in separate spreadsheets.
For example, I have a formula in cell which returns =<path>\[<file>]<reference>
. So the return value for cell R496
would be the string ='D:\Documents\[Filename.xls]sheet1'!$A$3
.
According to Apple Pie's answer on
Using the value in a cell as a cell reference in a formula, I can reference values from another cell in a formula my formula by using =INDIRECT(reference)
. Unfortunately, that doesn't seem to work when interpreting a full formula from another cell.
In Microsoft Excel 2013 and above, I would be able to use =FORMULATEXT()
, but unfortunately that option is not available in Excel 2010.
How can I use the value from a cell as a formula in Microsoft Excel 2010?
=
in your formula, then use INDIRECT. – Scott Craner=LEFT(CELL("filename",A487),FIND("[",CELL("filename",A487))-1)
. Calculate file name with=$C496 & " " & $B496 & ".xls"
. Final formula reference inR496
is=("='" & $P496 & "[" & $Q496 & "]" & "sheet1'!$H$3")
– StevoisiakR496
– Scott Craner