Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Loop through a range of cells to find unique entries

Hello All,
I am trying to loop through a column of cells for all unique entries. I
know how to loop but i don't know how to specify the results of being unique
and adding them to a seperate column can anyone help?

Column A

Test
Test 1
Test 2
Test
Test 1

I want this to appear in column B

Column B
Test
Test 1
Test 2

Thanks everyone


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Loop through a range of cells to find unique entries

Rather than looping I would use the following code:-

Range("A:A").AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Range("B1" _
), Unique:=True

It uses Advanced Filter to copy unque entries to B1.
Play around with this, I think it is far more straightforward,

Somethinglikeant

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Loop through a range of cells to find unique entries

Thank you very much thats great!!!
"somethinglikeant" wrote in message
oups.com...
Rather than looping I would use the following code:-

Range("A:A").AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Range("B1" _
), Unique:=True

It uses Advanced Filter to copy unque entries to B1.
Play around with this, I think it is far more straightforward,

Somethinglikeant



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
Return Just the Unique Entries From a Range of Cells wx4usa Excel Discussion (Misc queries) 4 July 2nd 09 03:31 PM
Find number of unique entries within a date range Gayla Excel Worksheet Functions 2 April 27th 07 02:58 AM
Find number of unique entries within a date range Gayla Excel Worksheet Functions 1 April 25th 07 11:42 PM
Find Unique Entries Frank Wilson Excel Programming 2 September 2nd 04 12:53 PM
Find Unique Entries James Stephens Excel Programming 3 February 16th 04 05:26 PM


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