Sort Multiple columns, ascending, alternating

cbaird2

New Member
Joined
Feb 16, 2011
Messages
11
Hello,
I have a large dataset that I'm trying to sort so I can put the data into a format to import into our system.

Data has many columns, I'm trying to sort by 3
Date (oldest to newest)
Value (ascending)
Transaction Code (largest to smallest)

This sorting will "pair up" certain rows that I need to be together (trans code 8 and 7). The problem becomes when I have multiple dates and values that are the same, and the transaction 8 and 7 do not alternate, instead they order like 8,8,8,7,7,7 etc.

Does anyone have any suggestions on how to make this third column alternate when the first two sort columns are the same value in multiple consecutive rows?

Thanks in advance, I searched and wasn't able to find anything on this topic on the forum.
 

Attachments

  • Capture.JPG
    Capture.JPG
    24.2 KB · Views: 12

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,375
Messages
6,119,168
Members
448,870
Latest member
max_pedreira

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
Back
Top