concatenate 2 columns (A2+B2) and compare for duplicates

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions RSS
Next:  How to get cd audio tracks to embed on powerpoint..  
Author Message
habelow1
External


Since: Jul 07, 2009
Posts: 1



PostPosted: Tue Jul 07, 2009 9:25 am    Post subject: concatenate 2 columns (A2+B2) and compare for duplicates
Archived from groups: microsoft>public>excel>misc (more info?)

I have 2 columns (First Name, Last Name) that I need to see if there are any
duplicates in the spreadsheet, and to flag them.
John Smith <----Duplicate
Jane Smith
John H Smith
John Smith <---- Duplicate

Thanks
Back to top
Luke M
External


Since: Jan 08, 2009
Posts: 224



PostPosted: Tue Jul 07, 2009 9:45 am    Post subject: RE: concatenate 2 columns (A2+B2) and compare for duplicates [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Easiest with 2 helper columns.
First helper (column C):
=A2&B2
Second helper:
=IF(COUNTIF(C:C,C2)>1,"DUPLICATE","")

Copy down as needed.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"habelow1" wrote:

> I have 2 columns (First Name, Last Name) that I need to see if there are any
> duplicates in the spreadsheet, and to flag them.
> John Smith <----Duplicate
> Jane Smith
> John H Smith
> John Smith <---- Duplicate
>
> Thanks
Back to top
Jacob Skaria
External


Since: Mar 04, 2009
Posts: 492



PostPosted: Tue Jul 07, 2009 9:48 am    Post subject: RE: concatenate 2 columns (A2+B2) and compare for duplicates [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try the below formula in C1; and copy that down as required

=IF(SUMPRODUCT(--($A$1:$A$100=A1),--($B$1:$B$100=B1))>1,"Duplicate","")

If this post helps click Yes
---------------
Jacob Skaria


"habelow1" wrote:

> I have 2 columns (First Name, Last Name) that I need to see if there are any
> duplicates in the spreadsheet, and to flag them.
> John Smith <----Duplicate
> Jane Smith
> John H Smith
> John Smith <---- Duplicate
>
> Thanks
Back to top
Steven
External


Since: Jan 19, 2009
Posts: 3



PostPosted: Tue Jul 07, 2009 9:48 am    Post subject: Re: concatenate 2 columns (A2+B2) and compare for duplicates [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In two steps

Concatenate cells A and B in column C through formula Concatenate
(A1,B1)

and drag down

In column D (the flag column)

=IF(COUNTIF(C:C,C1)>1,"duplicate","")

and drag down
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum