SOLVED

EXCEL

Copper Contributor

Is there an EXCEL function that returns the current (open) filename?

Is there an EXCEL function that returns the current (open) worksheet name?

3 Replies
best response confirmed by WittyGuy55 (Copper Contributor)
Solution

@WittyGuy55 

Perhaps

=TEXTBEFORE(TEXTAFTER(CELL("filename", A1), "["), "]")

and

=TEXTAFTER(CELL("filename", A1), "]")

@WittyGuy55 

You may use =CELL("filename") and parse returned text. If only you are not on Excel for Web.

Lot of samples how to use, google for them.

Thanks, Hans. I continue to be amazed at the power of EXCEL. Sometimes I just need a tip from an expert. Thanks again, David Hill in Florida, USA.
1 best response

Accepted Solutions
best response confirmed by WittyGuy55 (Copper Contributor)
Solution

@WittyGuy55 

Perhaps

=TEXTBEFORE(TEXTAFTER(CELL("filename", A1), "["), "]")

and

=TEXTAFTER(CELL("filename", A1), "]")

View solution in original post