Forum Discussion
aaghd
Dec 15, 2023Copper Contributor
Retrieving and Entering the Sheet Name in a Cell
Help says that you can retrieve a sheet name but does not clearly explain the syntax necessary to do so. I can get it to bring the number of the sheet, but I would like the "Name" of the sheet displayed in one of the sheet cells.
Thanks,
Hello aaghd,
you can use this formula to show the sheet name on a certain cell,=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)
- Patrick2788Silver Contributor
If you're in Excel 365, you can use:
=LET(filename, CELL("filename"), TEXTAFTER(filename, "]", -1))
- aaghdCopper ContributorI have pasted this in the cell where I want the value and I am getting an #Value! I did take out all spaces in the formula you wrote. Please let me know if I have done something wrong. The name on the sheet is "X Borough". Thanks.
- Patrick2788Silver Contributor
If you're using Excel for web you'll get a #VALUE! error:
CELL is not available in the web app.