Highlighting duplicate first and last names

bearcub

Well-known Member
Joined
May 18, 2005
Messages
734
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
I get lists from our offices where they have multiple records for one employee. I would like to highlight those cells where the first and last names appear more the once. In other words, highlight all the records that are duplicated using the first and last name fields (two different columns).

I normally have conditional formatting set for the member ID number but sometimes we don't get this different from the offices.

I tried using the Countifs function as follows but it is giving me incorrect results (I think I set it up incorrectly):

Code:
COUNTIFS($B:$B, $B2,$C:$C,$C2)>1

Where Column B has the last names and column C the first names. Column A is where I would have Member ID numbers but in this instance I wasn't provided with that information.

I was trying to google the formula but I didn't know exactly how to phrase it so I find the solution

Thank you for your help.

Michael
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Ah, I see. How does using the Len function prevent the 0's from showing., I don't understand, sorry.

I mean blanks, not 0;s.
I have edited my last post to show an example. If there is nothing in the cell, LEN() evaluates to 0 which is treated as a FALSE. If there is anything in the cell with any characters then LEN() will evaluate to a positive whole number which is treated as a TRUE.
 
Upvote 0
Thank makes sense now, thank you for the explanation and the example.

Michael
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,044
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top