Finding duplicate names

G

Guest

Okay, I got a list of people's names. Column A are first names. Column B is last names. In colum C I need a formula that will put the word duplicate if the last names and first names are the same. This is the formual that I think can be modified, but I'm not sure how to modify it

=IF(COUNTIF(Range1,???)>1,"Duplicate","Not a Duplicate"

This is kind of what I want
Column A Column B Column
Jen Black Not a duplicat
Jack Black Not a duplicat
Jen white Duplicat
Jen white Duplicat
 
M

Max

Try this ..

Assuming the data in cols A and B are in row1 down

Put in C1: =TRIM(A1&" "&B1)

Put in D1:

=IF(COUNTIF($C$1:C1,C1)>1,"Duplicate","Not a Duplicate")

Select C1:D1 and copy down

For the sample data in your post
C1:D4 will now contain:

Jen Black....Not a Duplicate
Jack Black..Not a Duplicate
Jen white.....Not a Duplicate
Jen white.....Duplicate

Think the first occurence of "Jen white" should rightly tag as
"Not a Duplicate" instead of "Duplicate"
(as indicated in your post)

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <at>yahoo<dot>com
----
Matt in AZ said:
Okay, I got a list of people's names. Column A are first names. Column B
is last names. In colum C I need a formula that will put the word duplicate
if the last names and first names are the same. This is the formual that I
think can be modified, but I'm not sure how to modify it:
 
G

Guest

Thanks. That worked great!
--
Matt in AZ


Max said:
Try this ..

Assuming the data in cols A and B are in row1 down

Put in C1: =TRIM(A1&" "&B1)

Put in D1:

=IF(COUNTIF($C$1:C1,C1)>1,"Duplicate","Not a Duplicate")

Select C1:D1 and copy down

For the sample data in your post
C1:D4 will now contain:

Jen Black....Not a Duplicate
Jack Black..Not a Duplicate
Jen white.....Not a Duplicate
Jen white.....Duplicate

Think the first occurence of "Jen white" should rightly tag as
"Not a Duplicate" instead of "Duplicate"
(as indicated in your post)

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <at>yahoo<dot>com
----

is last names. In colum C I need a formula that will put the word duplicate
if the last names and first names are the same. This is the formual that I
think can be modified, but I'm not sure how to modify it:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top