Quick Sort Macro Query

runningonempty

New Member
Joined
Aug 7, 2007
Messages
35
Hi All

Heres my problem:

I have two colums of unsorted data, each column with cells that match or do not match another cell in the other column.

Problem:

I need a macro to

a) sort both columns in ascending order
b) align cells from each column that match so we have a row of two identical cells
c) move unmatched cells to the bottom of the list and highlight these cells in red

Please leave room in your macro so that I can expand the selection if at a later date I have to sort out not just two columns but 2 tables or groups of columns by a common or key/ primary column

Many Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,191,719
Messages
5,988,298
Members
440,148
Latest member
sandy123

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