conditional formatting that would reflect to different cell

A_Al

New Member
Joined
May 25, 2021
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
Is there a conditional formatting that would reflect to (cell) based on (value chosen from drop-down list in different cell)?



Condition : All cells containing the value of (Yes) the next cell will be highlighted in gray and not allow anything to be typed; if (no) the next cell will be highlighted in green, blank and allow you to write comment ((without using if in the next cell)).
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    6.8 KB · Views: 7

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
you can use data validation
Custom
$A2<>"Yes"

also conditional formatting
2 rules
$A2="yes" format grey
$A2="no" format green

Book5
AB
1yes
2no
3no
4yes
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B5Expression=$A1="no"textNO
B1:B5Expression=$A1="yes"textNO
Cells with Data Validation
CellAllowCriteria
B1:B4Custom=$A1<>"Yes"
 
Upvote 0
you can use data validation
Custom
$A2<>"Yes"

also conditional formatting
2 rules
$A2="yes" format grey
$A2="no" format green

Book5
AB
1yes
2no
3no
4yes
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B5Expression=$A1="no"textNO
B1:B5Expression=$A1="yes"textNO
Cells with Data Validation
CellAllowCriteria
B1:B4Custom=$A1<>"Yes"
is it possible to add: if the cell (A2) containing the value of (Yes) the next cell (B2) not allow anything to be typed(block cell); if (no) the next cell allow you to write comment
 
Upvote 0
yes , thats what the data validation will do
 

Attachments

  • Screenshot 2023-01-25 at 11.57.39.jpeg
    Screenshot 2023-01-25 at 11.57.39.jpeg
    59.4 KB · Views: 7
Upvote 0
you can use data validation
Custom
$A2<>"Yes"

also conditional formatting
2 rules
$A2="yes" format grey
$A2="no" format green

Book5
AB
1yes
2no
3no
4yes
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B5Expression=$A1="no"textNO
B1:B5Expression=$A1="yes"textNO
Cells with Data Validation
CellAllowCriteria
B1:B4Custom=$A1<>"Yes"
solved, thanks.
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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