Concatenate & Remove Duplicate

peelamedu_bulls

New Member
Joined
Nov 30, 2005
Messages
29
I have the following column values

Input
Account no Code
000005678 ABC
000005678 EDF
000001234 ABC
000001234 ABC

Desired Output
Account no Code
000005678 ABC
000005678 EDF
000001234 ABC

Criteria
Concatenate Column A and B (i.e Account No and Code)
If there are duplicates of this concatenated data, remove duplicates

I'm able to do this in VBA in a round about way, i.e create a column to concatenate two columns and then create one more column and use countif to determine if there are duplicates and then remove the duplicate. But it's long, and not elegant. Trying to avoid these calculation columns in the final output.

Is there a more elegant solution to this problem ?
 
There's a thread on here somewhere (possibly more than one) that demonstrates the potential problems, but I can't find it.
Suffice to say that rows which should be considered duplicate & deleted aren't.
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,213,506
Messages
6,114,025
Members
448,543
Latest member
MartinLarkin

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