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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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