Hi i have a file location in say cell a1 ie. "C:/files/image.jpeg" is it possible to format this or create a formula in a2 to contain just "image.jpeg"
Hi i have a file location in say cell a1 ie. "C:/files/image.jpeg" is it possible to format this or create a formula in a2 to contain just "image.jpeg"
Last edited by pike; 04-04-2011 at 07:19 AM.
Hi Pike,
Thanks for the help but i just get the name? error i have tried to reverse engineer the mid and find formula but to no avail. i am running excel on osx but have checked and all the functions (mid, find, substitute are usable on this version) do you have any clues? thanks again for the help!!!!
Hi d3ad
I have cahnge the \ to / as in your example
but it should be \
so C:/files/image.jpeg becomes image.jpeg
=MID(A1,FIND("*",SUBSTITUTE(A1,"/","*",LEN(A1)-LEN(SUBSTITUTE(A1,"/",))))+1,LEN(A1))
plus removed a spelling mistake in substitute
=trim(right(substitute(a1,"/",rept(" ",25)),25))
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
fantastic thank you guys VERY much! sorry for my bad spelling in the first place!!!
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks