FormulaCraft

How to highlight a row based on a drop-down value in Excel and Google Sheets

Topic:Conditional formatting
Excel & Google Sheets
=B2=$F$1

Verified example

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

CategoryValue
FruitApple
VegetableCarrot
FruitBanana
VegetableBroccoli

=B2=$F$1FALSE

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. 1Create a drop-down list in cell F1 with the values you want to use for highlighting.
  2. 2Select the range of cells you want to apply the conditional formatting to (e.g., A2:B5).
  3. 3Go to the Home tab, click Conditional Formatting, and choose New Rule.
  4. 4Select 'Use a formula to determine which cells to format'.
  5. 5Enter the formula `=B2=$F$1` and set your desired formatting style.

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

What if I want to highlight multiple rows based on different drop-down values?

Create separate rules for each value by repeating the process with different formulas.

Can this be done without a drop-down list?

Yes, but the trigger would be manual input or another condition rather than a drop-down selection.

How do I remove the conditional formatting once it's applied?

Select the formatted cells, go to Home > Conditional Formatting > Clear 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: