View Single Post
  #3  
Old March 19th, 2010, 02:21 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Extracting the last word from a string.

=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
.