Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I have a list of appartement numbers. Sometimes it's written 102 o sometimes 102a and 102b. E.G 102 103 104a 104b 105 (...) Actually, if I record a macro to sort those valuesm it puts 104a an 104b at the end of the list, without considering them as numbers whic are locally before 105. Note that it could be one, two, three or mor digits. It would be a dynamic lenght. The letter too could be dynami as well. Is there a way to tell Excel/VBE to sort intelligently this list? Thx! Werner Code ------------------- Sub Sorting() Rows("16:29").Select Selection.Sort Key1:=Range("A16"), Order1:=xlAscending, Header:=xlGuess, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom End Sub ------------------- -- Werne ----------------------------------------------------------------------- Werner's Profile: http://www.excelforum.com/member.php...fo&userid=2430 View this thread: http://www.excelforum.com/showthread.php?threadid=38524 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sorting numbers and numbers that contain text in excel | Excel Discussion (Misc queries) | |||
Extract texts & numbers from one cell into four cells | Excel Discussion (Misc queries) | |||
List of unique texts and numbers | Excel Worksheet Functions | |||
Conditional Formatting : Numbers & Texts Conflict | Excel Worksheet Functions | |||
convert numbers to texts | Excel Worksheet Functions |