#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Sorting Problem

If *all* your data is exactly as you posted in your example, then TTC (Text
To Columns) is perfect for what you're looking to accomplish.

TTC can separate your data into individual columns *without* changing
(revising) your original data, where you can then set your sort keys, per
column, in any order that you wish, and then "throw away" those individually
parsed columns, leaving your original data behind, sorted as desired.


You should allow for 5 empty columns to the right of your data.
If necessary, you can *temporarily* insert those columns.

Select the column of data, then,
<Data <TextTo Columns
Click on "Fixed Width", then <Next

Click in the 'Data Preview' window to place the break lines so that the data
is separated into the groups that you wish to sort by, such as:

3 | B | B | 04 | 06

Then <Next

The 'Destination' box, by default, contains the address of your original
data.
To preserve your original data intact, change that address to the first of
your temporary columns, say if your data started in A1, the just enter B1.
Then <Finish

You now should select your original data *and* all of the temporary 5
columns.
Since you have 4 sort keys, sort first on the *last* temp column ( F ),
Then you can sort on the other 3 (B, D, and E).

When you're finished, and everything checks out OK, just delete those 5
'helper' columns.

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Joker" wrote in message
...
Thank you for the reply, however, when I try to sort that new column, it
will
not do anything. If I manually type the same numbers in, it will sort them.
Any suggestions?

"Ardus Petus" wrote:

Create a helper column with formula (say original data is in A1):
=LEFT(A1,2)&MID(A1,4,255)
Sort by that new column

HTH
--
AP

"Joker" a écrit dans le message de news:
...
Hi I am having trouble trying to sort a group of numbers with letters.
Below
are some examples of what I am trying to sort and in the correct order.
The
first number represents the floor the groups are on 1, 2, or 3. Second,

is
the section within that floor. So "A" would be at the front of the

floor,
"B"
is the section behind it, so on and so forth. The third letter is
insignificant and should not factor into the sorting. The next two

numbers
represent the group within the section and the last two numbers

represent
the
item within the group. So... 1AW0601 would be on the first floor (1)
section
"A" (A) the 6th group (06) and the first item (01). I know this is very
confusing. Any help getting these sorted would be greatly appreciated.
Thanks

1AW0601
1AW0804
2CC0401
2DF0402
3BB0406
3BW1201






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column matching - sorting. Fairly hard problem, I think. A S-D Excel Discussion (Misc queries) 13 April 7th 06 01:52 PM
Problem sorting cells containing hyperlinks cottonchipper Excel Worksheet Functions 1 November 5th 05 03:08 PM
Date sorting problem Ardell Excel Discussion (Misc queries) 1 November 4th 05 05:46 PM
An instant sorting problem Chris Excel Worksheet Functions 1 November 4th 04 07:31 PM
Sorting problem Chris Excel Worksheet Functions 1 November 3rd 04 11:27 PM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"