#1   Report Post  
Posted to microsoft.public.excel.misc
crestars
 
Posts: n/a
Default Sorting formula?


Hello, i have been hand out a very large list of book titles (in
french)..many of titles have "La" or "Le" or "L'" in front the the
first word...would there be a solution for me when i'm sorting that
these could be bypass?...hope someone has a bright idea...it would save
me lots of time


--
crestars
------------------------------------------------------------------------
crestars's Profile: http://www.excelforum.com/member.php...o&userid=32267
View this thread: http://www.excelforum.com/showthread...hreadid=520181

  #2   Report Post  
Posted to microsoft.public.excel.misc
Miguel Zapico
 
Posts: n/a
Default Sorting formula?

Create a column beside with a formula like this:
=IF(OR(LEFT(A1,2)="Le",LEFT(A1,2)="L'",LEFT(A1,2)= "La"),MID(A1,4,LEN(A1)),A1)
It will trim the first 3 characters -you can change to 2 using
MID(A1,3,LEN(A1))- of the cell if it fills any of the criteria, or leave it
untouched if not.
Then sort by this column.
--
It is nice to be important, but it is more important to be nice


"crestars" wrote:


Hello, i have been hand out a very large list of book titles (in
french)..many of titles have "La" or "Le" or "L'" in front the the
first word...would there be a solution for me when i'm sorting that
these could be bypass?...hope someone has a bright idea...it would save
me lots of time


--
crestars
------------------------------------------------------------------------
crestars's Profile: http://www.excelforum.com/member.php...o&userid=32267
View this thread: http://www.excelforum.com/showthread...hreadid=520181


  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default Sorting formula?

Here's one way, assuming your title is in column A and the first title
is in cell A1: insert a blank "helper" column next the the title column
(so the helper is column B). Paste this formula into B1:
=IF(MID(A1,1,3)="La ",MID(A1,4,LEN(A1))&",
"&MID(A1,1,3),IF(MID(A1,1,3)="Le ",MID(A1,4,LEN(A1))&",
"&MID(A1,1,3),IF(MID(A1,1,4)="Les ",MID(A1,5,LEN(A1))&",
"&MID(A1,1,4),IF(MID(A1,1,3)="L' ",MID(A1,4,LEN(A1))&",
"&MID(A1,1,3),IF(MID(A1,1,2)="L'",MID(A1,3,LEN(A1) )&",
"&MID(A1,1,2),A1)))))

This formula checks for La, Le, Les, L', and "L' " (note the space:
it's intended to catch keyboard entry errors) and moves those definite
articles to the end of the title entry. If the definite articles are
not present, the entire title as entered is returned. Then sort on the
helper column. Note that you must specify entire rows to sort, in this
context.

  #4   Report Post  
Posted to microsoft.public.excel.misc
crestars
 
Posts: n/a
Default Sorting formula?


boy you guys are very very good and so nice..thanks a bunch!


--
crestars
------------------------------------------------------------------------
crestars's Profile: http://www.excelforum.com/member.php...o&userid=32267
View this thread: http://www.excelforum.com/showthread...hreadid=520181

Reply
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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
adding row to forumla carrera Excel Discussion (Misc queries) 9 August 23rd 05 10:24 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 02:58 PM.

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"