Formatting Issues

Change an Entire Excel Row's Color When a Cell Equals Yes

Adam DavisAdam Davis Nov 25, 2026 869 views

Question details

Use conditional formatting to change an entire row's color when a cell in a specified column equals or contains yes.

Change an Entire Excel Row's Color When a Cell Equals Yes
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet has a Sent column in column F, and rows should be highlighted according to its value.
Observed behavior
Rows should automatically display the chosen fill color when the corresponding cell in the Sent column meets the condition.
Before you start

Identify the column to check and the first data row, excluding any header. In the example below, the Sent column is F and the data begins in row 2.

Solution 1Recommended

Use a Formula to Color Rows When a Cell Equals Yes

Apply this rule when the cell in the specified column must equal yes.

1
Select the data range

Select the cells to color, such as A2:K100, with A2 as the active cell. The selection should start on the first data row.

2
Create a formula rule

Go to Home > Conditional Formatting > New Rule and select Use a formula to determine which cells to format.

3
Enter the condition

Enter =$F2="yes". Replace F with the column to check and 2 with the first row of your selected range. Keep the dollar sign before the column letter, but not before the row number.

4
Choose the row color

Click Format, open the Fill tab, choose a color, and click OK. Click OK again to create the rule.

Use a Formula to Color Rows When a Cell Equals Yes
Check the applied range: If only part of a row changes color, go to Home > Conditional Formatting > Manage Rules and check that the Applies to range includes all the columns you want to color.
Try it in WPS Office

Highlight Rows Based on Yes in WPS Spreadsheet

Use a formula-based conditional formatting rule in WPS Spreadsheet to color selected rows when a cell in the Sent column equals yes.

  1. 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
  2. 2. Select the data: Select the range to highlight, such as A2:K100, starting with the first data row.
  3. 3. Add a formula rule: Go to Home > Conditional Formatting > New Rule, choose the formula-based rule option, and enter =$F2="yes". Adjust F and 2 for your worksheet.
  4. 4. Choose a color and save: Choose a fill color in the rule's format settings, confirm the rule, and use File > Save to save the workbook.
Automatically highlights rows based on the value in a chosen columnSupports Microsoft Excel XLSX and XLS filesOffers a familiar spreadsheet interfaceFree to download and use
microsoft office alternative - wps office

Frequently Asked Questions

Why is only one cell changing color instead of the entire row?

The rule may apply only to the checked cell. Go to Home > Conditional Formatting > Manage Rules and expand the Applies to range to include the columns you want to color.

Why is there a dollar sign before the column letter?

In =$F2="yes", $F keeps the rule checking column F across the selected range. Leaving the row number relative lets Excel check the corresponding cell in each row.

Will the formula match YES as well as yes?

Yes. The comparison =$F2="yes" is not case-sensitive, so it also matches YES and Yes.

How do I check column K instead of column F?

In the formula rule, replace $F2 with $K2. For example, use =$K2="yes" if your selected range starts on row 2.