Conditionally Format for cells that do not contain....

EBoudreau

Board Regular
Joined
Aug 21, 2015
Messages
153
I'm looking to Conditionally Format a cell using a formula for another cell if it does not contain certain letters.

Example:

I need to conditionally format Cell B1 to be a certain color if Cell A1 does not contain "T","TC","M","MC","B", or "BC".
So when I type in anything other than those values, I format B1.

I also currently have another condition running in B1 in reference to A1 so this would have to format if the previous condition is not met.


Any Ideas?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi,


  1. Create a range with the value you mentioned. I used G1:G6 in my example.
  2. Create the following conditional formula for B1: =ISERROR(INDEX(G1:G6;MAX(IF(ISERROR(FIND(G1:G6;A1));-1,1)*(ROW(G1:G6)-ROW(G1)+1))))
  3. Place it as second formula to check after your first and check the box for stopping other conditonal rules if one is true. It's placed at the end of the rule set.

It looks like an array formula and when placed on a worksheet it is and needs to be confirmed with Ctrl-Shft-Enter but within Conditonal formula there's no need. The array formula can simply be entered.

HtH
 
Upvote 0
Solution

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

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