The same as "SELECT DISTINCT".

diego.gomes

New Member
Joined
Dec 2, 2005
Messages
7
Hi,

I would like to do, without VBA, the same thing the SQL command, "SELECT DISTINCT" does. I have a list with thousands of values, and I want to return only the different values.

Thankx.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to the board.

1) Select your column
2) Go to data --> filter --> advanced filter
3) choose copy to another location and fill in the destination in the copy to field
4) select "unique records only"
5) click OK
 
Upvote 0
Try Data>Advanced Filter... and select Unique values only.
 
Upvote 0
You can utilise the Advanced Filter option and copy over unique values only - check out the Data>Filter>Advance Filter menu route and record a macro to see how to phrase the VBA.

Best regards

Richard
 
Upvote 0

Forum statistics

Threads
1,213,507
Messages
6,114,029
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