- Oct 23, 2000
- 9,200
- 765
- 126
I'm trying to take a listing of about 4,000 file names (with their full paths) and split them so that the file name is in one cell and the rest of the path is in a separate cell.
For example, take c:\users\jon\stuff.txt and make it into two separate cells, one containing C:\users\jon\ and the other cell containing stuff.txt
I have managed to extract the file names using this formula, but my Excel 'skills' are lacking the correct commands/syntax to do the same thing with the remainder of the path.
=MID(A1,FIND(CHAR(1),SUBSTITUTE(A1,"\",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))+1,LEN(A1))
Any suggestions how to modify this formula to return the full path instead of the file name (or a different formula that will get it done)?
For example, take c:\users\jon\stuff.txt and make it into two separate cells, one containing C:\users\jon\ and the other cell containing stuff.txt
I have managed to extract the file names using this formula, but my Excel 'skills' are lacking the correct commands/syntax to do the same thing with the remainder of the path.
=MID(A1,FIND(CHAR(1),SUBSTITUTE(A1,"\",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))+1,LEN(A1))
Any suggestions how to modify this formula to return the full path instead of the file name (or a different formula that will get it done)?