Excel - Extract data between the 3rd "\" and "."

Hello everyone,

I have a massive spreadsheet with a field that gives the file path. But now I am trying to find a way to just have the file name and get rid of everything to the left of the last "\". The hard part is that the amount of "\" in each row vary. Can anyone help me out?

Here is an example of a field:

...\Hydraulic Fittings\37 degree flare tube fittings\JIC cap nut_0304.tif (All I want is in bold).
...\Dixon Speciality Hose\PTFE convoluted non-conductive hose.tif

Like I said earlier, some of the rows vary in the amount of "\"'s they have.

Any response is appreciated.


P.S. I tried a between formula but the it reads the first "\".
TimSr. System AdminAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zorvek (Kevin Jones)ConsultantCommented:
Use this formula:



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TimSr. System AdminAuthor Commented:
WOW!  Thanks I am beyond grateful! If you don't mind, could you break it down to me?
zorvek (Kevin Jones)ConsultantCommented:
Starting with "...\xxx\yyy.tif"


This part:


determines the number of delimiters in the string. There are two in the case so:


This part changes the last (second) delimiter to a pipe:




This part finds the position of the pipe (or what was the last delimiter):




And the final step is to take the rightmost characters where the number of characters is the total length less the position of the pipe or what was the last delimiter.

TimSr. System AdminAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.