Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Remove Duplicates in an Array

I have a list of values in a column on an spreadsheet which i want to use to
populate a dropdown. The problem is that there are duplicate values in the
column and I only want to use unique values. I can transfer this informatin
to an Array but have become stuck on how to remove duplicate entries.

Do i have to step through the column and only write each occurrence of a new
value to the Array or is there a quick way to remove duplicate values from
the Array?

Any advice or help would be greatly appreciated.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Remove Duplicates in an Array

Hello,

I suggest to take only the first column of the result array of my UDF
lfreq:
http://www.sulprobil.com/html/listfreq.html

Or you write a similar function on your own.

Regards,
Bernd

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Remove Duplicates in an Array

http://j-walk.com/ss/excel/tips/tip47.htm

--
Regards,
Tom Ogilvy


"Patrick" wrote:

I have a list of values in a column on an spreadsheet which i want to use to
populate a dropdown. The problem is that there are duplicate values in the
column and I only want to use unique values. I can transfer this informatin
to an Array but have become stuck on how to remove duplicate entries.

Do i have to step through the column and only write each occurrence of a new
value to the Array or is there a quick way to remove duplicate values from
the Array?

Any advice or help would be greatly appreciated.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Remove Duplicates in an Array

Many thanks Tom for the link, i will give it a look.

Patrick

"Tom Ogilvy" wrote:

http://j-walk.com/ss/excel/tips/tip47.htm

--
Regards,
Tom Ogilvy


"Patrick" wrote:

I have a list of values in a column on an spreadsheet which i want to use to
populate a dropdown. The problem is that there are duplicate values in the
column and I only want to use unique values. I can transfer this informatin
to an Array but have become stuck on how to remove duplicate entries.

Do i have to step through the column and only write each occurrence of a new
value to the Array or is there a quick way to remove duplicate values from
the Array?

Any advice or help would be greatly appreciated.

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Remove Duplicates in an Array

Many thanks Bernd. I will give your code a look.

Patrick.

"Bernd" wrote:

Hello,

I suggest to take only the first column of the result array of my UDF
lfreq:
http://www.sulprobil.com/html/listfreq.html

Or you write a similar function on your own.

Regards,
Bernd


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 remove duplicates Gazza Excel Discussion (Misc queries) 7 January 29th 10 04:33 PM
How to remove row duplicates SNAP TO GUIDES DON''T SNAP Excel Discussion (Misc queries) 1 September 10th 08 10:28 PM
Remove Duplicates dk New Users to Excel 15 March 28th 08 07:41 AM
How to remove duplicates? Lakewoodsale Excel Discussion (Misc queries) 2 January 25th 08 10:31 PM
Remove duplicates Tuttamay77 Excel Discussion (Misc queries) 4 May 12th 06 10:56 PM


All times are GMT +1. The time now is 10:55 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"