Combining Yes/No Option Buttons with Conditional Formatting

DavidWF

Board Regular
Joined
Oct 14, 2015
Messages
130
I have a worksheet where several cells are conditionally formatted. I have other cells that contain yes/no option buttons. Despite hours spent trying to figure out how to combine the two I am unable to achieve both conditions - I want the cell containing the yes button to have green fill when "yes" is selected or have no fill if "no" is selected, similarly I want to the cell containing the no button to have red fill when "no" is selected or have no fill if "yes" is selected.
If what I'm trying to do is actually possible I'd be grateful for guidance on how to do it.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Maybe the following can help you:


example cf link cell.xlsx
ABCD
1ValueOptionLink
21FALSE
36TRUE
410FALSE
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B4Expression=Y($B2>5,$D2)textNO


In my example, cells B2 to B4 have conditional formatting, if the value is greater than 5 the cell is highlighted in green.
But the check box must also be active.

1704632115769.png


Notice how the checkbox is linked to the cell in column D.
So the complete condition is, if cell E2 is greater than 5 and cell D2 is true, then it highlights green.

I attach my example so you can see how it is organized.

🧙‍♂️
 
Upvote 0
Solution
Thanks DanteAmor. I couldn't translate your suggested solution to my problem as I was trying to conditionally format the cell that contained the option button, however you certainly pointed me in the right direction with the use of a Link cell. I've never used Link cells before, so this was a new learning for me. I've now set up a series of link cells outside the visible limits of the worksheet and use the values in these cells to conditionally format the cells containing the option buttons.

Excellent outcome - thank you so much for pointing me in the right direction.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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