Created
July 5, 2022 11:32
-
-
Save knu/642b6f3c3caa24dfc043dacca39d64cd to your computer and use it in GitHub Desktop.
Excel formula to get the current sheet name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("_"&REPT("]",LEN(CELL("filename"))-LEN(SUBSTITUTE(CELL("filename"),"]",""))),SUBSTITUTE(CELL("filename"),"]","_"&REPT("]",LEN(CELL("filename"))-LEN(SUBSTITUTE(CELL("filename"),"]",""))),(LEN(CELL("filename"))-LEN(SUBSTITUTE(CELL("filename"),"]","")))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment