Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
With VBA:
Sub Sort() Set Start = Range("a1") Start.Offset(0, 1).EntireColumn.Insert Shift:=xlToRight For Each c In Range(Start, Start.End(xlDown)) If UCase(Left(c, 3)) = "THE" Then c.Offset(0, 1) = Mid(c, 5) Else c.Offset(0, 1) = c End If Next c Start.CurrentRegion.Sort Key1:=Start.Offset(0, 1), Order1:=xlAscending, Header:=xlGuess Start.Offset(0, 1).EntireColumn.Delete End Sub http://cjoint.com/?cdrExzkMSs JB http://boisgontierjacques.free.fr/ On 31 jan, 18:34, Tomk wrote: Does Excel 2007 have a built in way to sort a list of names and ignore "The" in the title? -- Tomk |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatic sorting (giving max and min) based on custom sorting lis | Excel Worksheet Functions | |||
Sorting | Excel Discussion (Misc queries) | |||
sorting | Excel Discussion (Misc queries) | |||
Sorting VLookup vs Sorting SumProduct | Excel Discussion (Misc queries) | |||
Sorting: Sorting by the First Character | Excel Discussion (Misc queries) |