string - Split folder paths in Excel to return the final ...
superuser.com › questions › 969898Sep 08, 2015 · Path text C:\1_Folder\2_Folder\3_Folder\my_file.txt. Find position of next to last slash (B1): FIND("|",SUBSTITUTE(A1,"\","|",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))-1)) Find position of last slash (C1): FIND("\",A1,B1+1) Get the characters between next to last and last slash: MID(A1,B1+1,(C1-B1)-1)
Split file name from file path | MrExcel Message Board
www.mrexcel.com › board › threadsFeb 16, 2008 · 4. Feb 16, 2008. #1. (Using excel 2003) Each month I am sent a spreadsheet which contains a list of 100's of different file paths (including file name). For example (Quater 1 is the document name) R:\Management\John\2008\Sales\SectionA\Quater1. I would like to remove the file name from the file path (I will then convert the file paths to ...