Reverse combinations in different columns

DavidAC

Board Regular
Joined
Feb 10, 2003
Messages
134
Office Version
  1. 365
Hi,
I appreciate there is probably a simple answer to this but i am stuck.

We have a 4 column spreadsheet which has over 20K records in it. Column A & B are text fields and C & D are numeric fields. What we need to do is to ensure the combination in the text fields is reversed and also in the list. So

Column A. Column B. Column C. Column D.
London. Edinburgh. 300. 250

We need to ensure that
Column A. Column B. Column C. Column D.
Edinburgh London. 300. 250

Is also in the list. Hope that makes sense
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try this:

Copy everything to a new sheet
In new sheet...
Insert a new column at column A
Copy column C to Column A and delete column C (this has now reversed place names)
Copy the values again from the original sheet and paste directly below the values in the new sheet
Select the data \ click on Data Tab \ click on Remove duplicates

Duplicate rows will be removed, hopefully leaving you with the two-way data you want

NOTE
Dupicates are treated as duplicates if all 4 columns are identical (ie the numbers must also match up)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,527
Messages
6,120,057
Members
448,940
Latest member
mdusw

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