Conditional Formatting

drgregharris

New Member
Joined
Jun 9, 2015
Messages
2
I want to highlight cells which do NOT contain text from two different cells. Here's what I have.

A B C D
1 Jason Jason - Chris Jason Mark
2 Chris Chris Jason - Chris John

In this example, the reference cells are A1 and A2. If the cells do not contain either Jason, Chris, or Jason - Chris, they should be highlighted. Here cells B2, C1, and D2 should be highlighted. Can anyone help me out?

Thanks

Greg
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
The table above should look like this

ABCD
1JasonJason - ChrisJasonMark
2ChrisChrisJason - ChrisJohn

<tbody>
</tbody>

In this example, the reference cells are A1 and A2. If the cells do not contain either Jason, Chris, or Jason - Chris, they should be highlighted. Here cells B2, C1, and D2 should be highlighted. Can anyone help me out?

Thanks

Greg
 
Upvote 0
try this formula =AND(ISERROR(FIND($A$1,B1,1)),ISERROR(FIND($A$2,B1,1)))

apply the formula to cells B1 to D50 (or wherever the last cells you want to check is)
 
Upvote 0

Forum statistics

Threads
1,215,635
Messages
6,125,942
Members
449,275
Latest member
jacob_mcbride

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