How to change conditional formatting to rely on two cells?

dorki_doki

New Member
Joined
Nov 5, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
My excel knowledge is very basic. I'm making a rudimentary interactive checklist where I'm relying on conditional formatting where first the person answers a series of yes or no questions and depending on the answers, the following checklist will either grey and cross out the items or remain at the regular font. I realized that a few items on the checklist should only be greyed out if 2 of the questions are answered "No."

What's a formula I can use in conditional formatting that ensures the items are NOT greyed out unless BOTH of the required cells are marked with "No"?

Thank you.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
@dorki_doki Welcome.

Use the AND function in your CF formula.
Below example:
I2 will CF if J2 and $J$4 = No
I3 will CF if J3 and $J$4 = No

Book2
IJ
2Ques 1No
3Ques 2Yes
4Ques 3No
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:J3Expression=AND(J2="No",J$4="No")textNO

Hope that helps.
 
Upvote 0
@dorki_doki Welcome.

Use the AND function in your CF formula.
Below example:
I2 will CF if J2 and $J$4 = No
I3 will CF if J3 and $J$4 = No

Book2
IJ
2Ques 1No
3Ques 2Yes
4Ques 3No
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:J3Expression=AND(J2="No",J$4="No")textNO

Hope that helps.
Thank you this was perfect!
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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