Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I'm trying to sort an array of part numbers such as (3000, 3000P, 3000-10,
3000-10P, 30000P) and would like them to appear in that order. But I see that Excel ignores hyphens, which is part of the problem. Is there anyway I can change the data sorting defaults so the part numbers appear is this order? |
#2
![]() |
|||
|
|||
![]()
Another part of the problem is that you want the data to be treated as a
number followed by text. Excel can't do that unless you either split the data into 2 columns - number part and text part -- or you pad the numeric portion on the left with spaces to the maximum possible length of the number (i.e. 5 digits in the data you show). So let's say you use 2 "helper" columns in which you've done that split. You'll have to put a space in the 2nd column for those entries that consist of a number only (if it's blank, that row will sort to the bottom). As for the hyphen problem, you can replace the hyphen with a character that sorts after Z. One character that might work is character 158, an accented z. Then you can sort with these 2 columns as the keys. As far as I can see, this is the only way to get the order you want. On Thu, 7 Apr 2005 20:23:03 -0700, "Anna" wrote: I'm trying to sort an array of part numbers such as (3000, 3000P, 3000-10, 3000-10P, 30000P) and would like them to appear in that order. But I see that Excel ignores hyphens, which is part of the problem. Is there anyway I can change the data sorting defaults so the part numbers appear is this order? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text import wizard defaults? | Excel Discussion (Misc queries) | |||
Sort or Filter option? | Excel Worksheet Functions | |||
how do I change the text case of imported data in excel? | Excel Discussion (Misc queries) | |||
Can you change the defaults for Excel |
Excel Discussion (Misc queries) | |||
change typed text to upper case | Excel Discussion (Misc queries) |