Contact Form

Name

Email *

Message *

How to Highlight Cells Automatically with Conditional Formatting in Google Sheets

Dr/ sameh
A color wheel chart on a table
Photo: Pexels

Scanning a long sheet for the numbers that matter is slow. Conditional formatting does it for you: it changes a cell's color when a rule is met. Late payments turn red, high scores turn green, and you see the problem without reading every row.

Highlight cells with a simple rule

  1. Open your spreadsheet and select the cells to format.
  2. Click Format, then Conditional formatting. A panel opens on the right.
  3. Under Format cells if, choose a condition, such as Less than, Greater than, Text contains or Is empty.
  4. Enter the value, for example 0.8.
  5. Under Formatting style, pick a fill color.
  6. Click Done.

Google's example is a teacher who highlights test scores below 80 percent in red. These steps come from Use conditional formatting rules in Google Sheets.

Use a color scale

A color scale shades every cell from a low color to a high color, so you see the spread at a glance.

  1. Select the range, then open Format, Conditional formatting.
  2. Switch to the Color scale tab.
  3. Under Preview, pick a scale, then set the minimum, maximum and an optional midpoint.
  4. Click Done.

Format a whole row with a custom formula

Sometimes the rule depends on another column. For example, you want the whole row shaded when the Status column says Late.

  1. Select the full range, such as A2:E100.
  2. Open Format, Conditional formatting.
  3. Under Format cells if, choose Custom formula is.
  4. Enter a formula and pick a color:
=$E2="Late"

The dollar sign before E locks the column, so every cell in the row checks column E. Google notes that custom formulas can reference only the same sheet. To use another sheet, wrap the reference in INDIRECT.

Common mistakes

  • Applying the rule to the wrong range. Check the range shown at the top of the panel.
  • Forgetting the dollar sign, so the rule shifts as it moves across columns.
  • Stacking many rules. The first matching rule in the list is the one that shows, so reorder them if the color looks wrong.

Related: How to Remove Duplicates in Google Sheets uses a similar rule to shade repeated values.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.