Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to extract only file name from folder path string in Excel?
I need to extract the file names from folder path strings in a worksheet Cell
using Worksheet functions. The number of folder levels is variable: \\test server\app1\Test Files\File Set1\Bin_S(A) \\test server\app1\Test Files\File Set2\Test Case1\Full Regression |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to extract only file name from folder path string in Excel?
JayKay,
For a string in cell A1, array enter (enter using Ctrl-Shift-Enter) this formula =RIGHT(A1,LEN(A1)-MAX((MID(A1,ROW(INDIRECT("1:" & LEN(A1))),1)="\")*ROW(INDIRECT("1:" & LEN(A1))))) HTH, Bernie MS Excel MVP "JayKay" wrote in message ... I need to extract the file names from folder path strings in a worksheet Cell using Worksheet functions. The number of folder levels is variable: \\test server\app1\Test Files\File Set1\Bin_S(A) \\test server\app1\Test Files\File Set2\Test Case1\Full Regression |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Concatenate path and file string for external reference | Excel Worksheet Functions | |||
Launching an XL file gives errors for each folder in path, then opens | Excel Discussion (Misc queries) | |||
Relative Path to a Folder | Excel Discussion (Misc queries) | |||
Formula too long - new file path is shorter than old file path - Excel 2003 | Excel Worksheet Functions | |||
Setting a path to a folder | Excel Discussion (Misc queries) |