Data Sort Problem

PT

Board Regular
Joined
Feb 4, 2005
Messages
103
Hi you guys,

I have a problem with a data sort.

Imagine that I have data in 2 columns A and B:

column A: Column B:

A1- 10 B5- 2
A2- 12 B6- 5
A3- 14 B7- 6
A4- 20 B8- 10

Now in columns C and D I want to have something like that:

C1- 10 D1- 2
C2- 12 D2- 5
C3- 14 D3- 6
C4- 20 D4- 10

the normal sort doesn't do that because if you select the range A1:B8 and then make the normal sort excel recognize that the values in column A is already sort and doesn't sort the others.

Sorry but is difficult to explain this better.

best regards
 

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

P Sitaram

Well-known Member
Joined
Jun 24, 2003
Messages
1,974
Welcome.

If you go through Data|Sort, you can specify upto three levels of sorting.
 

PT

Board Regular
Joined
Feb 4, 2005
Messages
103
Hi Psitaram,

In fact we have 3 level's in the data sort, but the problem is that in the file I have several columns, so the 3 level's doesn't are sufficient, that why I can't solve the problem.

Best regards
 

P Sitaram

Well-known Member
Joined
Jun 24, 2003
Messages
1,974
Try concatenating the first three columns into a separate column and sort the remaining columns using the new column. Be sure to add a space or other separator (a character that is not expected to appear in your data) between cell values. Also, copy and paste values in the new column before the second sort.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,214
Messages
5,594,882
Members
413,947
Latest member
gizmolucy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top