Get the file path without the file name

jwalkerack

Board Regular
Joined
Jun 19, 2013
Messages
81
Hello ,

i have a long list of file directories on a spreadsheet.

Intially i wanted to seperate the file name. i was able to find a post online which allowed me to do this

get filename from filepath and filename

But now i would like to just have the file path without the file name

So if my full directory was

S:\AppsData\Excel\Jack\TEST\Football_players.xls

i would like the end result to be

S:\AppsData\Excel\Jack\TEST\


Is there an easy way of doing this ...


Thanks a lot Jack
 
Thanks Guys , that was great , help , i had already for the file name from the at link i had on the first message of the post.

i was then used the subsitute formala as you guys , stated ,

Thanks a lot
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top