Copy distinct values macro

DRExcel515

Board Regular
Joined
Oct 20, 2017
Messages
56
Is there a way to make a macro that takes the values/text I have in column B (starting in row 2 to avoid copying the header) on sheet SQL Dump and copy paste values all non-duplicate ticker symbols on a new sheet in column A staring in row 2 (again to avoid copying over the header) on sheet SD Calc?

So currently I have over 13,000 ticker symbols in column B staring in row 2 on the SQL Dump tab and need to copy over all of those tickers to the SD Calc tab starting in column A2, but only copy over a distinct list that gets rid of all duplicates.

Any help would be much appreciated!

Thanks,
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Just copy them all over, and use the built-in "Remove Duplicates" functionality Excel has.
Using the Macro Recorder, you could get the VBA code for this, if you definitely need VBA code.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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