Highlight an Entire Excel Row When a Cell Matches a Value

Use Conditional Formatting with a formula to automatically color entire rows when a specific cell in that row equals a target value (for example, "Completed").

What the video covers

Show how to use Excel's Conditional Formatting and a simple formula to highlight full rows when a cell in a given column equals a target text or value.

Watch the video on YouTube

Step-by-step instructions

  1. Select the rows to format
    Click and drag or Shift+click to select the full range of rows (all columns) that should receive conditional formatting.
  2. Open Conditional Formatting → New Rule
    On the Home tab, choose Conditional Formatting and create a new rule that uses a formula to determine which cells to format.
  3. Enter the formula
    In the rule, choose the option to use a formula and type a formula that locks the column and refers to the first row of your selection. Example for column B and text Completed: =$B2="Completed". Replace B and Completed as needed.
  4. Set the formatting
    Click Format, pick a fill color (or other formatting), and confirm. This formatting will apply to entire selected rows when the formula evaluates to TRUE.
  5. Apply and verify
    Click OK to finish. Check that rows with the target value in the specified column are highlighted. Edit a cell’s value to verify the highlight updates automatically.

Watch the video

Video thumbnail for Highlight an Entire Excel Row When a Cell Matches a Value Play tutorial

Watch on YouTube

Why it matters

Highlighting rows makes it fast to scan large sheets and identify records that meet important criteria (status, category, priority, etc.).

Check your result

Rows where the cell in the chosen column equals the target value are filled with the chosen color. Changing the cell value should add or remove the highlight automatically.

Troubleshooting

If no rows are highlighted, confirm the formula uses an absolute column reference (e.g., $B2) and the start row in the formula matches the first row of your selected range. Ensure text matches exactly (including spaces/case if necessary) or use functions like UPPER/LOWER to normalize. If numbers aren’t matching, remove quotes from the value in the formula (e.g., =$C2=100).