LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,651
Default Is this a trim issue

On Sun, 21 Mar 2010 12:02:35 -0700 (PDT), 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.


B1:

=TRIM(RIGHT(SUBSTITUTE(A1,"\",REPT(" ",255)),255))

C1:

=LEFT(A1,FIND(CHAR(1),SUBSTITUTE(A1,"\",CHAR(1),LE N(A1)-LEN(SUBSTITUTE(A1,"\","")))))



--ron
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TRIM Help ! Nikki Excel Discussion (Misc queries) 8 April 22nd 09 06:20 PM
TRIM Nikki Excel Discussion (Misc queries) 3 April 22nd 09 05:56 PM
Using =TRIM() Chuda Excel Worksheet Functions 6 November 9th 06 03:05 PM
Trim Again ferdy New Users to Excel 5 May 12th 05 02:50 PM
TRIM? Cthulhu Excel Worksheet Functions 10 February 10th 05 09:36 PM


All times are GMT +1. The time now is 10:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"