Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I am trying to sort account numbers that look something like this (but in a
column, not a row): 18,19,20,30,100,102,105,110,111 To look like this 100,101,102,105,110,111,18,19,20,30 Basically based on the first digit, then second digit, etc instead of numerically. Any ideas would be greatly appreciated! |
#2
![]() |
|||
|
|||
![]()
Maybe you could use a helper column, some formulas and sort by that helper
column. Say your data is A1:Axx Insert a new column B and use this formula: =A1&"" and drag down. Now sort your range by this helper column. But I'm not sure how you got 101 in that output!! Rowf wrote: I am trying to sort account numbers that look something like this (but in a column, not a row): 18,19,20,30,100,102,105,110,111 To look like this 100,101,102,105,110,111,18,19,20,30 Basically based on the first digit, then second digit, etc instead of numerically. Any ideas would be greatly appreciated! -- Dave Peterson |
#3
![]() |
|||
|
|||
![]()
here's one way: insert a helper column next to your column of acct. numbers.
Assuming your data begins in J1, in K1 place this formula: =IF(J1<100,J1*10,J1) and copy down your range. (now all cells will be a 3 digit number) Next, highlight the entire range and SortAscending by column K Finally, delete column K Your original values are now sorted in your desired order. HTH __________________ Bruce |
#4
![]() |
|||
|
|||
![]()
here's one way: insert a helper column next to your column of acct. numbers.
Assuming your data begins in J1, in K1 place this formula: =IF(J1<100,J1*10,J1) and copy down your range. (now all cells will be a 3 digit number) Next, highlight the entire range and SortAscending by column K Finally, delete column K Your original values are now sorted in your desired order. HTH __________________ Bruce |
#5
![]() |
|||
|
|||
![]()
here's one way: insert a helper column next to your column of acct. numbers.
Assuming your data begins in J1, in K1 place this formula: =IF(J1<100,J1*10,J1) and copy down your range. (now all cells will be a 3 digit number) Next, highlight the entire range and SortAscending by column K Finally, delete column K Your original values are now sorted in your desired order. HTH __________________ Bruce "Dave Peterson" wrote: Maybe you could use a helper column, some formulas and sort by that helper column. Say your data is A1:Axx Insert a new column B and use this formula: =A1&"" and drag down. Now sort your range by this helper column. But I'm not sure how you got 101 in that output!! Rowf wrote: I am trying to sort account numbers that look something like this (but in a column, not a row): 18,19,20,30,100,102,105,110,111 To look like this 100,101,102,105,110,111,18,19,20,30 Basically based on the first digit, then second digit, etc instead of numerically. Any ideas would be greatly appreciated! -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I wish to change the last digit in a list of random numbers. To a. | Excel Worksheet Functions | |||
Alphabetical list of Numbers are not correct! | Excel Discussion (Misc queries) | |||
Extracting Values on one list and not another | Excel Discussion (Misc queries) | |||
Sorting when some numbers have a text suffix | Excel Discussion (Misc queries) | |||
Sorting imported "numbers" | Excel Discussion (Misc queries) |