FormulaCraft

How to highlight a row if a cell equals a value in Excel and Google Sheets

Topic:Conditional formatting
Excel & Google Sheets
=($A2="target")

Verified example

Computed by a real spreadsheet engine on the sample data below.

NameScore
Alice85
Bob90
Charlie78
David92

=($A2="target")FALSE

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the range of rows you want to apply the formatting to.
  2. 2Go to the Home tab and click on Conditional Formatting.
  3. 3Choose 'New Rule' and select 'Use a formula to determine which cells to format'.
  4. 4Enter the formula `=($A2="target")` where A2 is the first cell in your selected range and "target" is the value you're checking for.
  5. 5Set your desired formatting style and click OK.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Can I highlight multiple rows based on different criteria?

Yes, you can create multiple rules under Conditional Formatting for different criteria.

What if my target value is in a different column?

Adjust the formula to reference the correct column, e.g., `=($B2="target")` if your target value is in column B.

How do I remove the conditional formatting once applied?

Select the formatted cells, go to Conditional Formatting, and choose 'Clear Rules'. You can also manage rules by clicking on 'Manage Rules'.

More on Conditional formatting

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: