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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,053
Office Version
  1. 365
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
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,344
Office Version
  1. 365
Platform
  1. Windows
Try Data>Advanced Filter... and select Unique values only.
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,057
Messages
5,835,161
Members
430,343
Latest member
t0m_c

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
Top