Function to display file name

E

Elton Law

Hi Expert,
Is there a function to display the file name in cell please?
Thanks
Elton
 
J

JBeaucaire

This formula only works after the file has been saved at least once...in any
cell:

=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,(FIND("]",CELL("filename",A1))+1)-FIND("[",CELL("filename",A1))-2)
 
E

Elton Law

Hi Rocket Scentist,
Terrific, it works ... Thanks indeed.
Elton

JBeaucaire said:
This formula only works after the file has been saved at least once...in any
cell:

=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,(FIND("]",CELL("filename",A1))+1)-FIND("[",CELL("filename",A1))-2)

--
"Actually, I *am* a rocket scientist." -- JB
(www.MadRocketScientist.com)

Your feedback is appreciated, click YES if this post helped you.


Elton Law said:
Hi Expert,
Is there a function to display the file name in cell please?
Thanks
Elton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top