Find Partial Duplicates

LPred

New Member
Joined
Jan 2, 2017
Messages
6
Is there any way to do a conditional formatting to highlight duplicates based on the second part of a cell? I have a multi column list of patient. They are entered as "Last Name,First Initial Room#" for instance "Smith,J 2317" right now I have to go through our system and manually check if a person has changed rooms. I have to do this for every person. I would like to find a way to have it highlight cells if the number matches. This way if someone comes in and is placed in a room that someone else is still listed in, I know to update that person.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
So if we have:

Smith,J 2317
Goodann,L 2045
Urton,J 3245
Myers,P 2317

The entire cell with Smith and Myers would be highlighted, because the numbers are the same.
 
Upvote 0
So if we have:

Smith,J 2317
Goodann,L 2045
Urton,J 3245
Myers,P 2317

The entire cell with Smith and Myers would be highlighted, because the numbers are the same.

Select A2:A5.
Fire up conditional formatting with the following formula:

=COUNTIFS($A$2:$A$5,"* "&RIGHT($A2,4))>1

And format as desired.

Note that this set up assumes a 4-digit number preceded by a space at the end of each entry.
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,212
Members
448,874
Latest member
b1step2far

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