#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Sort

I have the following table:
2 A 2 A
1 A 2 A
1 B 2 B
1 A 1 A
2 A 1 B
1 B 1 A
2 A 2 B
1 A 2 B
2 A 2 B
2 B 1 B
2 B 1 A
2 B 2 A
2 A 1 A
1 A 1 B
1 B 2 A
1 B 1 B

After I sort on column A, B and C I get:
1 A 1 A
1 A 1 B
1 A 2 A
1 A 2 B
1 B 1 A
1 B 1 B
1 B 2 B
1 B 2 A
2 A 1 B
2 A 1 A
2 A 2 A
2 A 2 B
2 A 2 B
2 B 1 B
2 B 1 A
2 B 2 A

I want to include column D into the sort. Right now the sort is wrong
on row 7 and after that few more rows. How to sort so that column D is
sorted and column A, B and C also remain sorted? Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Sort

On Feb 23, 4:45 pm, wrote:
I have the following table:
2 A 2 A
1 A 2 A
1 B 2 B
1 A 1 A
2 A 1 B
1 B 1 A
2 A 2 B
1 A 2 B
2 A 2 B
2 B 1 B
2 B 1 A
2 B 2 A
2 A 1 A
1 A 1 B
1 B 2 A
1 B 1 B

After I sort on column A, B and C I get:
1 A 1 A
1 A 1 B
1 A 2 A
1 A 2 B
1 B 1 A
1 B 1 B
1 B 2 B
1 B 2 A
2 A 1 B
2 A 1 A
2 A 2 A
2 A 2 B
2 A 2 B
2 B 1 B
2 B 1 A
2 B 2 A

I want to include column D into the sort. Right now the sort is wrong
on row 7 and after that few more rows. How to sort so that column D is
sorted and column A, B and C also remain sorted? Thanks.



Okay nevermind, First I have to sort on D and minor ones. Then I have
to apply the major sort as the last sort, working my way out backwards.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Sort

One other option is if you can add another column which is the concatenation
of all columns you want to sort.

=A1&B1&C1&D1

You then sort just on that column that you added.



" wrote:

On Feb 23, 4:45 pm, wrote:
I have the following table:
2 A 2 A
1 A 2 A
1 B 2 B
1 A 1 A
2 A 1 B
1 B 1 A
2 A 2 B
1 A 2 B
2 A 2 B
2 B 1 B
2 B 1 A
2 B 2 A
2 A 1 A
1 A 1 B
1 B 2 A
1 B 1 B

After I sort on column A, B and C I get:
1 A 1 A
1 A 1 B
1 A 2 A
1 A 2 B
1 B 1 A
1 B 1 B
1 B 2 B
1 B 2 A
2 A 1 B
2 A 1 A
2 A 2 A
2 A 2 B
2 A 2 B
2 B 1 B
2 B 1 A
2 B 2 A

I want to include column D into the sort. Right now the sort is wrong
on row 7 and after that few more rows. How to sort so that column D is
sorted and column A, B and C also remain sorted? Thanks.



Okay nevermind, First I have to sort on D and minor ones. Then I have
to apply the major sort as the last sort, working my way out backwards.


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
Saving Sort Criteria (or Sort Lists) Jim J. Excel Worksheet Functions 1 July 25th 06 10:55 AM
How can I sort one column and have the entire row sort. (binding) Blue Excel Worksheet Functions 10 November 13th 05 07:09 PM
Excel sort by Fill Color by custom list sort Dash4Cash Excel Discussion (Misc queries) 2 July 29th 05 10:45 PM
Excel Sort function should not sort the cell formatting! Lisa D.N.1 Excel Worksheet Functions 1 December 28th 04 08:37 PM
how can I hide sort ascending and sort descending options in the . vida Excel Discussion (Misc queries) 0 December 11th 04 12:31 AM


All times are GMT +1. The time now is 10:23 AM.

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

About Us

"It's about Microsoft Excel"