The following assumes a full path name is in cell A2 for example:
A2: C:\Laptop_backup\Flash Drive grey\Save\50 per day.xls B2: =RIGHT(A2,LEN(A2)-FIND("@",SUBSTITUTE(A2,"\","@",LEN(A2)-LEN(SUBSTITUTE(A2,"\",""))),1)) The following VBA code will also get the file name
|