Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Hi,
Am Sun, 22 Dec 2013 19:24:34 +0000 schrieb walkingfern: However, it consistently puts some items out of order for column B, making it difficult for me to check the species information. I've double checked for extra spaces, there are no extra characters. I don't understand what's happening. is column A correctly sorted? Regards Claus B. -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#2
![]() |
|||
|
|||
![]()
Thank you for replying!
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. All cells are formatted as text. Thanks! Quote:
|
#3
![]()
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 |
#4
![]() |
|||
|
|||
![]()
Well, this was a new experience. ;-)
1. I've never opened Visual Basic. 2. I've never even used a macro. 3. I have a Mac. Found online instructions for how to create a macro in Visual Basic. Copied and pasted the macro. Hit the F5 key. Same problem. It sorts on Column A and Column B has a mind of its own. Tried again and got a runtime error. Hit "debug" and it highlighted the line: LRow = Cells(Rows.Count, 2).End(xIUp).Row One of these days, I'll have to try learning new things. I just wish I understood why Excel doesn't follow its own instructions. Thank you for providing me with a new experience! Quote:
|
#5
![]() |
|||
|
|||
![]()
Did find one small, stupid mistake on my part.
On the line with the runtime error, I changed what I'd typed as a capital letter I (between H and J) to a lower case L. That made eliminated the error message, but it still didn't sort the column. Thanks for helping. Quote:
|
Reply |
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) |