ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Advice sought: Multiple column sorting (https://www.excelbanter.com/excel-worksheet-functions/37675-advice-sought-multiple-column-sorting.html)

davidm

Advice sought: Multiple column sorting
 

I have data in Columns A,B,C throgh J (10 Cols in total).

I need to sort the entire range of A1:J800 in the following order of
importance:

1. ColC
2. ColD
3. ColE
4. ColA
5. ColH
6. Col J
7. Col A
8. Col B
9. Col F
10.Col G

Since Excel data sorting tool handles 3 keys at a time, I have thought
of starting the sorting from the back, taking, in my example, for the
1st pass, CoLG--Key1
CoLF---key2 & CoLB --key3.

Next, for the 2nd pass, CoLA--Key1
CoLJ---key2 & CoLH --key3.

and so on until ColH,ColA, ColE are handled

Now, for the final dressing, I'd take the Block Columns A,H,J and sort
them with key1,key2,key3 respectively.

In all cases, the sorting process will have the entire range selected
with headings.

Am I on the right course?


--
davidm
------------------------------------------------------------------------
davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645
View this thread: http://www.excelforum.com/showthread...hreadid=391208


davidm


In << Now, for the final dressing, I'd take the Block *Columns A,H,J *
and sort them with key1,key2,key3 respectively., B]Columns A,H,J [/B
should be
* ColC, ColD ColE*


--
davidm
------------------------------------------------------------------------
davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645
View this thread: http://www.excelforum.com/showthread...hreadid=391208


Stefi

Hi David,
My tip is to use a helper column K, cell K1 filled with the formula
=C1 & D1 & E1 & A1 & H1 & J1 & A1 & B1 & F1 & G1
fill down as necessary, then sort by column K.
Use converting functions instead direct cell references if soma data type
are not "text", and add extra spaces to make values of equal length in one
column if necessary!
Regards,
Stefi



€˛davidm€¯ ezt Ć*rta:


I have data in Columns A,B,C throgh J (10 Cols in total).

I need to sort the entire range of A1:J800 in the following order of
importance:

1. ColC
2. ColD
3. ColE
4. ColA
5. ColH
6. Col J
7. Col A
8. Col B
9. Col F
10.Col G

Since Excel data sorting tool handles 3 keys at a time, I have thought
of starting the sorting from the back, taking, in my example, for the
1st pass, CoLG--Key1
CoLF---key2 & CoLB --key3.

Next, for the 2nd pass, CoLA--Key1
CoLJ---key2 & CoLH --key3.

and so on until ColH,ColA, ColE are handled

Now, for the final dressing, I'd take the Block Columns A,H,J and sort
them with key1,key2,key3 respectively.

In all cases, the sorting process will have the entire range selected
with headings.

Am I on the right course?


--
davidm
------------------------------------------------------------------------
davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645
View this thread: http://www.excelforum.com/showthread...hreadid=391208



Tushar Mehta

Are you on the right track? Close. You are correct in that multiple
sorts going from the least important block to the most important block
is the way to go. However, within each block, specify the keys in the
order of most-important to least-important.

How to sort more than three columns in Excel
http://support.microsoft.com/default...b;en-us;268007

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...

I have data in Columns A,B,C throgh J (10 Cols in total).

I need to sort the entire range of A1:J800 in the following order of
importance:

1. ColC
2. ColD
3. ColE
4. ColA
5. ColH
6. Col J
7. Col A
8. Col B
9. Col F
10.Col G

Since Excel data sorting tool handles 3 keys at a time, I have thought
of starting the sorting from the back, taking, in my example, for the
1st pass, CoLG--Key1
CoLF---key2 & CoLB --key3.

Next, for the 2nd pass, CoLA--Key1
CoLJ---key2 & CoLH --key3.

and so on until ColH,ColA, ColE are handled

Now, for the final dressing, I'd take the Block Columns A,H,J and sort
them with key1,key2,key3 respectively.

In all cases, the sorting process will have the entire range selected
with headings.

Am I on the right course?


--
davidm
------------------------------------------------------------------------
davidm's Profile:
http://www.excelforum.com/member.php...o&userid=20645
View this thread: http://www.excelforum.com/showthread...hreadid=391208




All times are GMT +1. The time now is 06:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com