Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Right to left search

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin - 31 Jul 2006 12:10 GMT
Does anyone know of a simple way to search text strings from right to left
instead of left to right? I can buy software for this but thought there
should be a non-cost option somewhere out there.
I am using Microsoft Office Excel 2003 (2)
Niek Otten - 31 Jul 2006 12:35 GMT
Hi Martin,

Can you give an example of what you're trying to do?

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Does anyone know of a simple way to search text strings from right to left
| instead of left to right? I can buy software for this but thought there
| should be a non-cost option somewhere out there.
| I am using Microsoft Office Excel 2003 (2)
Martin - 31 Jul 2006 12:50 GMT
Sorry, should have done this earlier.
I have a list of names of the type name1spacename2space....spacesurname and
I am trying to quickly separate the surname from the rest. For example, three
such names could be:

John James

John Jack James

John Jack Jeremy James

with the surname being James in all three cases.

> Hi Martin,
>
[quoted text clipped - 4 lines]
> | should be a non-cost option somewhere out there.
> | I am using Microsoft Office Excel 2003 (2)
Niek Otten - 31 Jul 2006 13:18 GMT
Easiest to do in several steps, once you're satisfied you can combine them in one formula.
First: how many spaces are there?
=LEN(A1)-LEN(SUBSTITUTE(A1," ",""))
Now substitute the last one by a special character, like #, also with a SUBSTITUTE formula
Now find the position of that character with the FIND function
Take the part to the right of this character with RIGHT(A1,LEN(A1)-the position you just found)

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Sorry, should have done this earlier.
| I have a list of names of the type name1spacename2space....spacesurname and
[quoted text clipped - 17 lines]
| > | should be a non-cost option somewhere out there.
| > | I am using Microsoft Office Excel 2003 (2)
Dave Peterson - 31 Jul 2006 13:53 GMT
=RIGHT(A1,LEN(A1)-FIND("^^",SUBSTITUTE(A1," ",
  "^^",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))

> Sorry, should have done this earlier.
> I have a list of names of the type name1spacename2space....spacesurname and
[quoted text clipped - 23 lines]
> > | should be a non-cost option somewhere out there.
> > | I am using Microsoft Office Excel 2003 (2)

Signature

Dave Peterson


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.