Is this a trim issue
first create a function to reverse the string
Function InvertStr(str As String)
InvertStr = StrReverse(str)
End Function
then use that function as formula
b1:
=LEFT(A1,LEN(InvertStr(A1))-FIND("\",InvertStr(A1))+1)
c1:
=InvertStr(LEFT(InvertStr(A1),FIND("\",InvertStr(A 1))-1))
Regards
elMedex
"Box666" wrote:
I have been given somebody's library to catalogue and provide a search
engine for. At the moment it is in text format in column A.
The following is an example.
G:\Books\N O P\Nigel R Clough\Nigel R Clough - How To Make and Use
Mirrors.pdf
Or sometimes it appears as
G:\Books\N O P\Nigel R Clough - How To Make and Use Mirrors.pdf
So I want to move everything to the right of the last \ into column
B and the rest into column C. So in the first example above:-
Nigel R Clough - How To Make and Use Mirrors.pdf would be in Column B
And
G:\Books\N O P\Nigel R Clough\ would be on Column C.
While in the 2nd example
Nigel R Clough - How To Make and Use Mirrors.pdf would be in Column B
And
G:\Books\N O P\ would be on Column C.
Any help in this matter would be much appreciated.
.
|