Hello. I’ve got a tough sorting problem I can’t seem to find an answer to. I'm trying to sort numbers from an outline where the numbers work as follows:
1.1.0, 1.1.1, . . . . 1.1.9, 1.1.10,
1.2.0, 1.2.1, 1.2.2 . . . . 1.2.10, 1.2.11, 1.2.12
1.100.0, 1.200.0, 1.300.0, 1.400.0
2.1.0, 2.1.1, 2.1.2 . . . . 2.1.7
2.100.0, 2.200.0, 2.300.0, 2.400.0
etc.
Every #.# sequence is variable in how high the other numbers go (but always in sequence). So the 1.1.0 series might end at 1.1.10 but the 1.2.0 series might end at 1.2.12 and the 2.1.0 series ends at 2.1.7. in addition, initial number also has a series that goes 1.100.0, 1.200.0, 1.300.0, 1.400.0 (this was done because these four items are always the same, so that way we could be assured they'd always have the same number, no matter how many other items were in the series.
I want to sort it as it appears above, as Word would do it in outline form, but Excel always sorts like a dictionary, treating the .11 as after .1, rather than as a number where .11 comes after. 10 (i.e., sorts them as 1.1.0, 1.1.1, 1.1.10, 1.11...1.1.2, 1.1.3). I have tried changing the format to several different types, including Number, Text, Decimal, and cannot get Excel to sort it in the correct order for an outline. I suspect there is a way to do it with a custom number format, but I really don't know how those work.
Any and all solutions appreciated. Thanks very much!
1.1.0, 1.1.1, . . . . 1.1.9, 1.1.10,
1.2.0, 1.2.1, 1.2.2 . . . . 1.2.10, 1.2.11, 1.2.12
1.100.0, 1.200.0, 1.300.0, 1.400.0
2.1.0, 2.1.1, 2.1.2 . . . . 2.1.7
2.100.0, 2.200.0, 2.300.0, 2.400.0
etc.
Every #.# sequence is variable in how high the other numbers go (but always in sequence). So the 1.1.0 series might end at 1.1.10 but the 1.2.0 series might end at 1.2.12 and the 2.1.0 series ends at 2.1.7. in addition, initial number also has a series that goes 1.100.0, 1.200.0, 1.300.0, 1.400.0 (this was done because these four items are always the same, so that way we could be assured they'd always have the same number, no matter how many other items were in the series.
I want to sort it as it appears above, as Word would do it in outline form, but Excel always sorts like a dictionary, treating the .11 as after .1, rather than as a number where .11 comes after. 10 (i.e., sorts them as 1.1.0, 1.1.1, 1.1.10, 1.11...1.1.2, 1.1.3). I have tried changing the format to several different types, including Number, Text, Decimal, and cannot get Excel to sort it in the correct order for an outline. I suspect there is a way to do it with a custom number format, but I really don't know how those work.
Any and all solutions appreciated. Thanks very much!