Link to home
Start Free TrialLog in
Avatar of jasocke2
jasocke2Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Extract folder from path - Excel Formula

Hi,

Pretty simple one I think...If I have say:

C:/folder1/folder2/folder3/folder4/folder5/file.xls....
..in a cell could I write a formula in the cell next to it that would extract the folder that the file is in, so for the above example the formula would return *folder5* as the file.xls is in folde5.

So basically the formula would be returing what is in the inbetween the last forward slashes /***/, 'folder5'..

Thanks
ASKER CERTIFIED SOLUTION
Avatar of RichardSchollar
RichardSchollar
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jasocke2

ASKER

Hi,

I did mean backslash!!

Works a treat, many thanks.

James