Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tod tod is offline
external usenet poster
 
Posts: 114
Default Best way to get unique names

I have a table of data in a worksheet, like this:

Name Applies
Fred 0
Joe 0
Greg 1
Joe 1
Fred 1
Mary 1
Joe 1
Fred 1
Fred 0

I'm trying to get a unique list of Names where Applies =
1 and paste that list to another sheet. Everything I've
tried is just too sloppy. Can anyone suggest a way to do
this?

tod
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Best way to get unique names

Hi
try using 'Data - Filter - Advanced Filter' and check unique entries. You
may first filter out all entries without a '1' in column B

"Tod" wrote:

I have a table of data in a worksheet, like this:

Name Applies
Fred 0
Joe 0
Greg 1
Joe 1
Fred 1
Mary 1
Joe 1
Fred 1
Fred 0

I'm trying to get a unique list of Names where Applies =
1 and paste that list to another sheet. Everything I've
tried is just too sloppy. Can anyone suggest a way to do
this?

tod

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Best way to get unique names

You can use an Advanced Filter to extract the names

With your sample data in cells A1:B10 --

Set up a criteria area:
In cell D1, type: Applies
In cell D2, type: 1
In cell E2, type: =SUMPRODUCT((A$2:A2=A2)*(B$2:B2=1))=1

Set up the Extract area:
In cell G1, type: Name

Select a cell in the list, and choose DataFilterAdvanced Filter
Select to Copy to another location
For the list range, select A1:B10
For the criteria area, select D1:E2
For Copy to, select G1
Click OK

Tod wrote:
I have a table of data in a worksheet, like this:

Name Applies
Fred 0
Joe 0
Greg 1
Joe 1
Fred 1
Mary 1
Joe 1
Fred 1
Fred 0

I'm trying to get a unique list of Names where Applies =
1 and paste that list to another sheet. Everything I've
tried is just too sloppy. Can anyone suggest a way to do
this?

tod



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
Counting Unique Names Karen Excel Worksheet Functions 2 November 19th 09 09:41 PM
Unique Names w/ Conditions Glempy Excel Worksheet Functions 2 September 7th 09 11:41 PM
counting unique names - again John K Excel Worksheet Functions 3 January 25th 08 09:42 PM
Finding unique names--then converting those names to unique number Proton Excel Discussion (Misc queries) 7 June 13th 07 10:22 PM
New Range containing Unique names only Steve Excel Programming 2 October 2nd 04 12:41 AM


All times are GMT +1. The time now is 10:39 PM.

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"