Highlighting duplicate names in multiple cells

Joined
Mar 25, 2019
Messages
14
Hi all,

I am trying to find a way to highlight cells that contain duplicate names using conditional formatting or VBA. There are a number of people attending a workshop that has several sessions each hour throughout the day. The idea is for this for point out if a person has been entered to attend more than one session that occurs at the same time. This way the sessions can be reorganized to allow the person to attend the sessions they need to be involved with. The caveat is that there can be upwards of 50 names listed in the same Attendees cell. For example in the table below, Name 1 is listed in 3 sessions - so those cells would be highlighted.

8:00 AMAttendees
Session 1Name 1, Name 2, Name 3
Session 2Name 1, Name 4, Name 5, Name 6
Session 3Name 7, Name 8
Session 4Name1, Name 9
Session 5Name 10, Name 11

To take this a step further, if it's possible to highlight a specific name, that would be even better!


I know this can be done manually by searching (ctrl+f) a person's name, but I want this to be an automated process. Thanks in advance!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Why not apply Data - Text to columns - to col B using the comma as delimiter
You then get multiple columns each with one participant
Now use =COUNTIF($B$2:$X$100,B2) as CF and format as required
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

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