Multiple options in conditional formatting

Rickinnocal

New Member
Joined
Dec 14, 2010
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Hi guys, here is what I'm trying to do...

I have a cell, call it A1, that is YES/NO. The default value is NO.

If it is changed to YES, certain other cells, not otherwise needed, have to be completed. I would like to use conditional formatting to make those cells turn red if A1 is changed to YES so that the user doesn't forget to complete them. That's easy enough, I can do that no problem.

BUT, once the user does put data in each cell, I want the red to vanish. I've got other cells that are red until populated, so that's no problem either - but how to get 'both' conditions checked is messing me up. I've tried an AND statement in the rule.... ="" AND A1="YES". for example, but it doesn't seem to work.

Can anyone point me in the right direction?

Richard
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
With A1 as you Yes/No cell and C1 as your red cell
=AND($A$1="Yes",ISBLANK(C1)) applied across your range
 
Upvote 0
=AND( $A1 = "YES", OR(OtherCell <> "", OtherCell1 <> "", OtherCell2 <> ""))
you may need a $ sign in front of the Column ID

Book6
ABCDEFGHIJ
1Y?NDatareq1Datareq2Datareq3Datareq4Datareq5Datareq6Datareq7FALSE
2YES1111111FALSE
3FALSE
4Yes111111FALSE
5FALSE
6Yes1111TRUE
7FALSE
8yes1111111FALSE
Sheet1
Cell Formulas
RangeFormula
J1:J8J1=AND($A1="YES",OR($B1="",$C1="",$D1="",$E1=""))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A:HExpression=AND($A1="YES",OR($B1="",$C1="",$D1="",$E1="",$F1="",$G1="",$H1=""))textNO
 
Upvote 0
Thank you, the "isblank" option worked. The second answer wasn't what I wanted, it left the range red if 'any' cell was blank, I wanted it specific to each cell.

I also found I actually had it right before - Excel was editing my formula for me and making it wrong.

If I type in [ B4="YES" ] as the formula, and then apply it, it doesn't work. If I go back and click "Edit Rule", the formula now reads [ ="B4="YES"" ]. If I delete the extra quote marks, it works fine. How do I stop Excel adding the extraneous quotation marks?
 
Upvote 0
Explicitly enter the = in your formula.
i.e. instead of B4="Yes" type =B4="Yes"
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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