Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jill
 
Posts: n/a
Default Have 2 columns of names - need to filter out names not duplicated

Hi I have two columns of names - Column A 1,377 names, Column G 1,456 names.
Most are duplicates. I want to see the names in another column that are not
duplicates. How do I use VLOOKUP to do this? Or do you have any other
suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Have 2 columns of names - need to filter out names not duplicated

Try this:

Using a list of 1,377 names in Col_A with a column heading in A1 and another
list of names in cells G2:G100.

A1: Name
C1: Name

H1: Test
H2: =ISNUMBER(MATCH(A2,$G$2:$G$100,0))

Select cells A1:A1377
DataFilterAdvanced Filter
Check: Copy to another location
List Range: (already selected a1:a1377)
Criteria: (Select $H$1:$H$2)
Copy to: (Select $C$1)
Click the [OK] button

The list of matching names will be copied below Cell C1.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jill" wrote:

Hi I have two columns of names - Column A 1,377 names, Column G 1,456 names.
Most are duplicates. I want to see the names in another column that are not
duplicates. How do I use VLOOKUP to do this? Or do you have any other
suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jill
 
Posts: n/a
Default Have 2 columns of names - need to filter out names not duplica

Thanks Ron - I learned something new, however, when I did the filter, it gave
me the names of the persons who are in both columns. I want the names
filtered out that only appear once. In other words, I have two sets of
names. Most of the names are in both columns. I am trying to locate those
that appear in one or the other column. Thanks

"Ron Coderre" wrote:

Try this:

Using a list of 1,377 names in Col_A with a column heading in A1 and another
list of names in cells G2:G100.

A1: Name
C1: Name

H1: Test
H2: =ISNUMBER(MATCH(A2,$G$2:$G$100,0))

Select cells A1:A1377
DataFilterAdvanced Filter
Check: Copy to another location
List Range: (already selected a1:a1377)
Criteria: (Select $H$1:$H$2)
Copy to: (Select $C$1)
Click the [OK] button

The list of matching names will be copied below Cell C1.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jill" wrote:

Hi I have two columns of names - Column A 1,377 names, Column G 1,456 names.
Most are duplicates. I want to see the names in another column that are not
duplicates. How do I use VLOOKUP to do this? Or do you have any other
suggestions?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Have 2 columns of names - need to filter out names not duplica

Ahhhh...now I understand.

There may be other ways to do this, but this is my preference:

Assign range names to your 2 lists. I called mine rngList1 and rngList2.
Save your file.

(Note in the following steps, MS Query may display warnings about it's
ability to show the query ...ignore them and proceed.)

Then:
DataImport External DataNew Database Query
Source type: Excel File
Source: Select your file
Select rngList1 and rngList2
Click [Next], accepting defaults until the next step.

At The last screen select The View data/Edit The Query option.
Click the [SQL] button

The initial SQL will look something like this:
SELECT rngList1.Name, rngList2.Name
FROM `C:\Excel Stuff\Lists`.rngList1 rngList1, `C:\Excel
Stuff\Lists`.rngList2 rngList2

Edit it to look like this:
SELECT Name FROM
(SELECT Name FROM `C:\Excel Stuff\Lists`.rngList1
UNION ALL
SELECT Name FROM `C:\Excel Stuff\Lists`.rngList2 )
GROUP BY Name
HAVING COUNT(Name) = 1

Click the [OK] button
(hopefully you'll see the unique values at this point)

Return the data to Excel.

The Unique values from each list should be displayed in the sheet.

Let me know if you have any issues/questions.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jill" wrote:

Thanks Ron - I learned something new, however, when I did the filter, it gave
me the names of the persons who are in both columns. I want the names
filtered out that only appear once. In other words, I have two sets of
names. Most of the names are in both columns. I am trying to locate those
that appear in one or the other column. Thanks

"Ron Coderre" wrote:

Try this:

Using a list of 1,377 names in Col_A with a column heading in A1 and another
list of names in cells G2:G100.

A1: Name
C1: Name

H1: Test
H2: =ISNUMBER(MATCH(A2,$G$2:$G$100,0))

Select cells A1:A1377
DataFilterAdvanced Filter
Check: Copy to another location
List Range: (already selected a1:a1377)
Criteria: (Select $H$1:$H$2)
Copy to: (Select $C$1)
Click the [OK] button

The list of matching names will be copied below Cell C1.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jill" wrote:

Hi I have two columns of names - Column A 1,377 names, Column G 1,456 names.
Most are duplicates. I want to see the names in another column that are not
duplicates. How do I use VLOOKUP to do this? Or do you have any other
suggestions?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
wjohnson
 
Posts: n/a
Default Have 2 columns of names - need to filter out names not duplicated


I would OPEN a New Worksheet and Copy and past ALL of column A Only -
then In column B - I would use some type of identifier and (i.e Column
A, or Sheet 1, etc.). Then Copy Column G or your second column and
paste it below your new column A and then in Column B - use some type
of identifier, to identify where the column came from.
Now sort Column A. Then add sometype of "Heading" into Cell A1.
Now enter the following formula into Cell C2:
=IF(A2=A1,"Duplicate","Not Duplicate"), This will give you a listing of
which cells are duplicate and not duplicate.
Column B - will tell you were the duplicates are. Then you can filter
for Duplicate or Not Duplicate - and create a new sheet.


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=502990



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Have 2 columns of names - need to filter out names not duplica

For a more manual approach, try this:

Insert a blank sheet
A1: Name
B1: Unique?
Copy your Col_A list into the new sheet, beginning on cell A2.
Copy your Col_G list into the new sheet, immediately under the first list.

B2: =COUNTIF($A$1:$A$2834,A1)=1
Copy that formula down thru B2834

Then select A1:B2834
DataFilterAutoFilter
Click on the Unique? dropdown and select TRUE

There's your list of unique names.
(adjust range references if necessary)

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jill" wrote:

Thanks Ron - I learned something new, however, when I did the filter, it gave
me the names of the persons who are in both columns. I want the names
filtered out that only appear once. In other words, I have two sets of
names. Most of the names are in both columns. I am trying to locate those
that appear in one or the other column. Thanks

"Ron Coderre" wrote:

Try this:

Using a list of 1,377 names in Col_A with a column heading in A1 and another
list of names in cells G2:G100.

A1: Name
C1: Name

H1: Test
H2: =ISNUMBER(MATCH(A2,$G$2:$G$100,0))

Select cells A1:A1377
DataFilterAdvanced Filter
Check: Copy to another location
List Range: (already selected a1:a1377)
Criteria: (Select $H$1:$H$2)
Copy to: (Select $C$1)
Click the [OK] button

The list of matching names will be copied below Cell C1.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jill" wrote:

Hi I have two columns of names - Column A 1,377 names, Column G 1,456 names.
Most are duplicates. I want to see the names in another column that are not
duplicates. How do I use VLOOKUP to do this? Or do you have any other
suggestions?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Have 2 columns of names - need to filter out names not duplica

Darn typos!

The formula should be:
B2: =COUNTIF($A$1:$A$2834,A2)=1

NOT
B2: =COUNTIF($A$1:$A$2834,A1)=1

***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

For a more manual approach, try this:

Insert a blank sheet
A1: Name
B1: Unique?
Copy your Col_A list into the new sheet, beginning on cell A2.
Copy your Col_G list into the new sheet, immediately under the first list.

B2: =COUNTIF($A$1:$A$2834,A1)=1
Copy that formula down thru B2834

Then select A1:B2834
DataFilterAutoFilter
Click on the Unique? dropdown and select TRUE

There's your list of unique names.
(adjust range references if necessary)

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jill" wrote:

Thanks Ron - I learned something new, however, when I did the filter, it gave
me the names of the persons who are in both columns. I want the names
filtered out that only appear once. In other words, I have two sets of
names. Most of the names are in both columns. I am trying to locate those
that appear in one or the other column. Thanks

"Ron Coderre" wrote:

Try this:

Using a list of 1,377 names in Col_A with a column heading in A1 and another
list of names in cells G2:G100.

A1: Name
C1: Name

H1: Test
H2: =ISNUMBER(MATCH(A2,$G$2:$G$100,0))

Select cells A1:A1377
DataFilterAdvanced Filter
Check: Copy to another location
List Range: (already selected a1:a1377)
Criteria: (Select $H$1:$H$2)
Copy to: (Select $C$1)
Click the [OK] button

The list of matching names will be copied below Cell C1.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jill" wrote:

Hi I have two columns of names - Column A 1,377 names, Column G 1,456 names.
Most are duplicates. I want to see the names in another column that are not
duplicates. How do I use VLOOKUP to do this? Or do you have any other
suggestions?

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
Macro for Filter Switches ... Maybe??? Ken Excel Discussion (Misc queries) 4 February 25th 05 05:30 PM
Finding Duplicated Text within Columns Jen Excel Discussion (Misc queries) 1 February 15th 05 02:43 PM
Filter two columns with criterion applying to one or the other? Peter Frank Excel Discussion (Misc queries) 1 January 26th 05 03:54 PM
How do I change the names of the cells or columns from "A" to wha. Jeanne New Users to Excel 1 January 7th 05 03:10 AM
How can I find the common names in two columns of names? hako Excel Discussion (Misc queries) 2 December 8th 04 01:59 AM


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