![]() |
#1
|
|||
|
|||
![]()
in first column i have path
for example c:\a\b\c\d\e.jpg output c:\a\b\c\d\ any another example \\gis-9\D\ARUNACHALPRADESH\ARUNACHAL\RAIGAM\info\arc000. dat i need upto \\gis-9\D\ARUNACHALPRADESH\ARUNACHAL\RAIGAM\info\ |
#2
|
||||
|
||||
![]()
Here's one way
=LEFT(A1,SEARCH("\ /",SUBSTITUTE(A1,"\","\ /",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))) The formula will return a #VALUE! error if there are no \ characters in the cell being checked. |
#3
|
|||
|
|||
![]()
Hello
This is just what I was looking for, but I need everything after the last slash. Can you help? Thanks Carol |
#4
|
||||
|
||||
![]()
Hi Carol,
Here's one way: =RIGHT(A1,SEARCH("\ /",SUBSTITUTE(A1,"\","\ /",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))+LEN("\ /")-1) |
#5
|
|||
|
|||
![]()
Colin -
It does not seem to work. I don't know what I am getting, column B seems to have variable amounts of data and only parts of words. My column A has different numbers of slashes in each row (you know different levels of subfolders). Does this matter? Carol |
#6
|
||||
|
||||
![]()
Hi,
Sorry, don't know what happened there.... =RIGHT(A1,LEN(A1)-SEARCH("\ /",SUBSTITUTE(A1,"\","\ /",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))) |
#7
|
|||
|
|||
![]()
Thank you, that did it.
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kg28 | Word | 1 | 02-04-2012 01:33 PM |
![]() |
Jamal NUMAN | Word | 1 | 09-03-2011 11:37 AM |
How to edit the "Format" and the "show level" of an EXISTING table of content? | Jamal NUMAN | Word | 2 | 08-14-2011 10:46 AM |
![]() |
Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |
![]() |
Jamal NUMAN | Word | 4 | 06-30-2011 05:48 PM |