Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Select Distinct Items in a Column

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Select Distinct Items in a Column

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

--
Regards
Frank Kabel
Frankfurt, Germany

"Raul" schrieb im Newsbeitrag
...
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Select Distinct Items in a Column

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

"Frank Kabel" wrote:

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

--
Regards
Frank Kabel
Frankfurt, Germany

"Raul" schrieb im Newsbeitrag
...
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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default Select Distinct Items in a Column

Raul wrote:
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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get the distinct values in a column & put it in next col VIDYA Excel Discussion (Misc queries) 2 December 22nd 08 06:28 PM
Select Distinct Maximums Zeepowlee Excel Worksheet Functions 3 April 5th 06 06:16 PM
distinct values in column parthaemail New Users to Excel 13 March 13th 06 02:40 PM
howto select distinct values from list chris Excel Worksheet Functions 6 April 17th 05 12:25 PM
select distinct row weejeow Excel Programming 8 April 29th 04 12:21 PM


All times are GMT +1. The time now is 01:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"