Forum Discussion
Fatdave42
Jul 01, 2021Copper Contributor
using = to get data from a sheet based on a cell name
Hi. I am using =HYPERLINK("#'"&A5&"'!A1",A5) to make a link to a sheet with the sheet name in cell A5. This works very whell and save me doing a link for every new sheet. What I would lik...
- Jul 01, 2021
Fatdave42 , the solution HansVogelaar gave will do that. More specifically the
INDIRECT("'" & A5 & "'!F1")portion will return the value from cell F1 on the sheet named in cell A5.
Note: I did find a typo in the formula missing a quote so that might have been part of your problem.
HansVogelaar
Jul 01, 2021MVP
mtarler
Jul 01, 2021Silver Contributor
Fatdave42 , the solution HansVogelaar gave will do that. More specifically the
INDIRECT("'" & A5 & "'!F1")portion will return the value from cell F1 on the sheet named in cell A5.
Note: I did find a typo in the formula missing a quote so that might have been part of your problem.
- HansVogelaarJul 02, 2021MVP
Thank you for pointing out my mistake! I have corrected it.
- Fatdave42Jul 02, 2021Copper Contributor