Conditional formatting duplicate words within different cells

reconcomm

New Member
Joined
Nov 7, 2015
Messages
1
Thanks for taking the time to read this.

Very novice to Excel compared to most. Thanks for your advice.

We use basic conditional formatting of duplicates often at my work. If two cells are exactly the same I know how to make them light up.

So my question is how can I get Excel to identify duplicates between two cells that are NOT exactly the same.

For instance one cell might contain [RB James Starks GB] and the other cell only [James Starks]. Can excel pick out the individual duplicate names and disregard the [Dr and GB] portion of the first cell?

Thanks.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the board!

I'll assume you know how to use a formula to set the conditions for the format you want. Suppose your list is in A1:A100, then the CF formula is:
Code:
=AND(ISNUMBER(SEARCH("James Starks",$A1)),COUNTIF($A$1:$A100,"*James Starks*")>1)

EDIT: This is not case sensitive. If you want it to be case sensitive change the SEARCH function to a FIND function.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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