Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a list in excel like the one below.
The filename is always after the last "/". What formula can I use to extract the filename? The number of instances of "/" is not cosistent in every path string. ../ABCD/home/ABCD/EFGH/ciaran ../ABCD/home/ABCD/EFGH/bin/paul ../ABCD/home/james ../ABCD/home/ABCD/EFGH/bin/partition The results I would like a ciaran paul james partition |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Try this =RIGHT(A1,LEN(A1)-FIND("*",SUBSTITUTE(A1,"/","*",LEN(A1)-LEN(SUBSTITUTE(A1,"/",""))))) -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "Ciarán" wrote: I have a list in excel like the one below. The filename is always after the last "/". What formula can I use to extract the filename? The number of instances of "/" is not cosistent in every path string. ../ABCD/home/ABCD/EFGH/ciaran ../ABCD/home/ABCD/EFGH/bin/paul ../ABCD/home/james ../ABCD/home/ABCD/EFGH/bin/partition The results I would like a ciaran paul james partition . |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=TRIM(RIGHT(SUBSTITUTE(A1,"/",REPT(" ",99)),99))
"Ciarán" wrote: I have a list in excel like the one below. The filename is always after the last "/". What formula can I use to extract the filename? The number of instances of "/" is not cosistent in every path string. ../ABCD/home/ABCD/EFGH/ciaran ../ABCD/home/ABCD/EFGH/bin/paul ../ABCD/home/james ../ABCD/home/ABCD/EFGH/bin/partition The results I would like a ciaran paul james partition . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extracting a word form a text string | New Users to Excel | |||
Extracting and replacing the first word in a String of text | Excel Worksheet Functions | |||
Extracting a word from a text string | Excel Discussion (Misc queries) | |||
Extracting a string | Excel Discussion (Misc queries) | |||
Extracting from a text string | Excel Worksheet Functions |