Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Hi,
Am Mon, 23 Dec 2013 16:51:30 +0000 schrieb walkingfern: Yes, Column A is correctly sorted. However, Column B is all awry. I thought that maybe it had something to do with the sort order of Column C, so I eliminated that from the "sort by" but it's still out of order. try following macro for your column B and then try sorting again: Sub Test() Dim LRow As Long Dim rngC As Range LRow = Cells(Rows.Count, 2).End(xlUp).Row For Each rngC In Range("B1:B" & LRow) rngC = WorksheetFunction.Clean(Trim(rngC)) Next End Sub Regards Claus B. -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I sort alphabetically in Excel | Excel Discussion (Misc queries) | |||
How do I sort contents alphabetically in Excel? | Excel Discussion (Misc queries) | |||
How do I sort my excel list alphabetically by last name? | Excel Discussion (Misc queries) | |||
How do I sort in Excel alphabetically? | Excel Discussion (Misc queries) | |||
How do I sort alphabetically by last letter in Excel? | Excel Discussion (Misc queries) |