Hyperlink display
QTGlennM wrote:
I have the file path to several files of mine in columb A.
In columb B, I use =hyperlink(A1) and copy down.
The hyperlinks work fine but I only want to display the actual file
name.
example instead of
- G:\Staff Duty Book Folders V2\Book Cover.doc
I want it to display
- Book Cover
Any suggestions I am totally lost on this.
Thanks in advance
Maybe it's a little bit long, but I think it should work:
=MID(SUBSTITUTE(A10,"\","]",LEN(A10)-LEN(SUBSTITUTE(A10,"\",""))),FIND("]",SUBSTITUTE(A10,"\","]",LEN(A10)-LEN(SUBSTITUTE(A10,"\",""))))+1,LEN(A10)-FIND("]",SUBSTITUTE(A10,"\","]",LEN(A10)-LEN(SUBSTITUTE(A10,"\",""))))-4)
where in A10 you have your path with filename.
--
Hope I helped you.
Thanks in advance for your feedback.
Ciao
Franz Verga from Italy
|