#1   Report Post  
Posted to microsoft.public.excel.misc
Michael
 
Posts: n/a
Default Picking unique Items


Can someone help advise the macro or code to pull out unique items from an
array.

Don't want to sort and manually pick them out.

Eg.

Apple
Banana
Apple
Orange
Orange
Banana

Result required : Apple, Orange and Banana
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Picking unique Items

Dataadvanced Filter
Leave criteria blank
Check "Unique"

Please forgive approximate translation from french Excel

HTH
--
AP

"Michael" a écrit dans le message de
...

Can someone help advise the macro or code to pull out unique items from an
array.

Don't want to sort and manually pick them out.

Eg.

Apple
Banana
Apple
Orange
Orange
Banana

Result required : Apple, Orange and Banana



  #3   Report Post  
Posted to microsoft.public.excel.misc
Michael
 
Posts: n/a
Default Picking unique Items

Merci Petus,

Your advise will work but I was actually looking more for VB codes as i
have a number of other task to carry out after obtaining the unique Items.

Any idea?

"Ardus Petus" wrote:

Dataadvanced Filter
Leave criteria blank
Check "Unique"

Please forgive approximate translation from french Excel

HTH
--
AP

"Michael" a écrit dans le message de
...

Can someone help advise the macro or code to pull out unique items from an
array.

Don't want to sort and manually pick them out.

Eg.

Apple
Banana
Apple
Orange
Orange
Banana

Result required : Apple, Orange and Banana




  #4   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Picking unique Items

Assuming your original data is in A1:A10
and you want unique values in column C:

Sub Unique()
Range("A1:A10").AdvancedFilter _
Action:=xlFilterCopy, _
CopyToRange:=Range("C1"), _
Unique:=True
End Sub

HTH
--
AP

"Michael" a écrit dans le message de
...
Merci Petus,

Your advise will work but I was actually looking more for VB codes as i
have a number of other task to carry out after obtaining the unique Items.

Any idea?

"Ardus Petus" wrote:

Dataadvanced Filter
Leave criteria blank
Check "Unique"

Please forgive approximate translation from french Excel

HTH
--
AP

"Michael" a écrit dans le message de
...

Can someone help advise the macro or code to pull out unique items

from an
array.

Don't want to sort and manually pick them out.

Eg.

Apple
Banana
Apple
Orange
Orange
Banana

Result required : Apple, Orange and Banana






  #5   Report Post  
Posted to microsoft.public.excel.misc
Michael
 
Posts: n/a
Default Picking unique Items

Thank You

"Ardus Petus" wrote:

Assuming your original data is in A1:A10
and you want unique values in column C:

Sub Unique()
Range("A1:A10").AdvancedFilter _
Action:=xlFilterCopy, _
CopyToRange:=Range("C1"), _
Unique:=True
End Sub

HTH
--
AP

"Michael" a écrit dans le message de
...
Merci Petus,

Your advise will work but I was actually looking more for VB codes as i
have a number of other task to carry out after obtaining the unique Items.

Any idea?

"Ardus Petus" wrote:

Dataadvanced Filter
Leave criteria blank
Check "Unique"

Please forgive approximate translation from french Excel

HTH
--
AP

"Michael" a écrit dans le message de
...

Can someone help advise the macro or code to pull out unique items

from an
array.

Don't want to sort and manually pick them out.

Eg.

Apple
Banana
Apple
Orange
Orange
Banana

Result required : Apple, Orange and Banana






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
retrieve unique items with 2 criteria Dave Breitenbach Excel Worksheet Functions 10 November 30th 05 11:16 PM
create an array with unique items IN MEMORY Werner Rohrmoser Excel Worksheet Functions 1 September 25th 05 02:55 PM
counting unique items tjtjjtjt Excel Discussion (Misc queries) 3 September 14th 05 05:47 AM
Finding unique items in data field for pivot tables [email protected] Excel Discussion (Misc queries) 2 July 15th 05 06:15 PM
Count of unique items meeting condition Tim C Excel Worksheet Functions 1 November 12th 04 03:03 AM


All times are GMT +1. The time now is 04:24 PM.

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

About Us

"It's about Microsoft Excel"