help with macro to get rid of duplicates

lyndseygus

New Member
Joined
Aug 8, 2017
Messages
3
Hello i have a macro where i have information in columns A, B, E, and F. Columns A & B are being pulled in from one spread sheet and columns E and F are being pulled in from another spreadsheet. I would like to combine columns E and A into column A and get rid of duplicates. After this being said the rows that were in column F still need to line up with the value that they were with in Column E before E and A were combined.

Example of spread sheet:

A B E F
4070401052 .10 4070494685 6



*6 and 4070494685 need to stay together somehow after value 4070494685 is moved to column A.

Thanks!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi,

Do you want column E to be the master column; so for every duplicate value the value in column A will be deleted? Will the duplicates in column A and E be on the same row?

Cheers,

AKR22
 
Upvote 0
Hello i have a macro where i have information in columns A, B, E, and F. Columns A & B are being pulled in from one spread sheet and columns E and F are being pulled in from another spreadsheet. I would like to combine columns E and A into column A and get rid of duplicates. After this being said the rows that were in column F still need to line up with the value that they were with in Column E before E and A were combined.

Example of spread sheet:

A B E F
4070401052 .10 4070494685 6



*6 and 4070494685 need to stay together somehow after value 4070494685 is moved to column A.

Thanks!

Is there a need for a macro here? This can easily be handled with a few quick operations. Cut/paste E:F under A:B and then use Data>Remove Duplicates using column A as your criteria.
 
Upvote 0

Forum statistics

Threads
1,216,163
Messages
6,129,223
Members
449,495
Latest member
janzablox

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