Excel: Apply Conditional Formatting to Yes/No Values

Excel is a powerful tool that can be used for a variety of tasks. One of the many features of Excel is the ability to apply conditional formatting to yes/no values. This feature allows the user to quickly apply conditional formatting to specific cells or ranges of cells based on certain criteria, such as a yes or no value. This can be a very powerful tool for quickly identifying and analyzing data. In this article, we will discuss how to apply conditional formatting to yes/no values in Excel. We will also look at some of the different types of conditional formatting available and how to apply them. By the end of this article, you should have a better understanding of how to use conditional formatting in Excel and be able to apply it to your own data.


You can apply conditional formatting to cells that contain Yes or No values in Excel by using the New Rule option under the Conditional Formatting dropdown menu within the Home tab.

The following example shows how to use this option in practice.

Example: Apply Conditional Formatting to Yes/No Values in Excel

Suppose we have the following dataset in Excel that shows whether or not various basketball players are All-Stars:

Suppose we would like to use conditional formatting to apply a green background to each cell with a value of “Yes” and a red background to each cell with a value of “No” in in the All-Star column.

To do so, we can highlight the range B2:B13, then click the Conditional Formatting dropdown menu on the Home tab and then click New Rule:

In the new window that appears, click Use a formula to determine which cells to format, then type =B2=”Yes” in the box, then click the Format button and choose a green fill color to use.

Once we press OK, all of the cells in the range B2:B13 that contain a value of “Yes” will be highlighted with a green background:

Next, highlight the range B2:B13 again and then click the Conditional Formatting dropdown menu on the Home tab and then click New Rule.

Then click Use a formula to determine which cells to format, then type =B2=”No” in the box, then click the Format button and choose a red fill color to use.

Once we press OK, all of the cells in the range B2:B13 that contain a value of “No” will be highlighted with a red background:

Excel conditional formatting for yes or no values

Note: Within the Format options, you can also change the font style and border style of cells if you’d like.

x