Select Distinct Items in a Column

G

Guest

I've got a column of product names and I need to create a list of the
distinct product names in that column. I can do this by looping through the
data and updating a list, but I was wondering is there is a
better/cleaner/faster way to do this. The autofilter function creates a list
of distinct item in that column. Is there a way to use that functionality?

Thanks in advance,
Raul
 
F

Frank Kabel

Hi
just record a macro while using 'Data - Filter - Advanced Filter' with
checking 'Unique entries'
 
G

Guest

That works.
Thanks

Is there a way to populate an array with the advanced filter results without
puting the results on the spreadsheet first?

Raul
 
A

Alan Beban

Raul said:
That works.
Thanks

Is there a way to populate an array with the advanced filter results without
puting the results on the spreadsheet first?

Raul . . .

Without regard to the advanced filter results, if the functions in the
freely downloadable file at http://home.pacbell.net/beban are available
to your workbook

myArray=ArrayUniques(Range("A2:A12"))

Alan Beban
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top