Color Scale in Conditional Formatting in Google Sheets

Published on

Conditional formatting with a color scale in Google Sheets lets you visually represent data ranges using gradient colors. This is especially helpful for spotting trends, identifying outliers, or making large sets of numbers easier to interpret at a glance.

For example, if you have a list of student scores, you can highlight the range so higher marks appear in darker shades of red, and lower marks in lighter shades—helping you identify top performers instantly.

Color scales work only with numbers, dates, or timestamps. If your data includes text mixed with numbers, you’ll need to extract the numbers first using functions like REGEXEXTRACT or REGEXREPLACE.

Google Sheets offers four types of color scale rules:

  • Min and Max
  • Number
  • Percentile
  • Percent

Let’s walk through how each one works.

1. Min and Max Color Scale in Google Sheets

This rule automatically assigns colors based on the lowest and highest values in a range—you can’t manually define them.

Steps:

  1. Select your data range (e.g., B3:B14).
  2. Go to Format > Conditional formatting.
  3. Under the Color scale tab, keep the default settings.

By default:

  • The maximum value gets a dark green color.
  • The minimum value gets a white color.

You can change the gradient from green-to-white to any custom colors using the “Preview” section.

Min and max color scale in Google Sheets

Note: Midpoint value customization (Number, Percentile, or Percent) is not available in this rule. The midpoint position is automatically calculated based on the min and max values.

2. Number Color Scale in Google Sheets

Use this option when you want to assign specific Minpoint and Maxpoint values manually.

Example: Let’s say you want to apply a gradient to values between 3.75 and 9.25.

  • Minpoint: 3.75
  • Maxpoint: 9.25

Behavior of Out-of-Range Values in Number Color Scale

  • Values below 3.75 will be assigned the Minpoint color (i.e., the color used for the minimum).
  • Values above 9.25 will be assigned the Maxpoint color (i.e., the color used for the maximum).
  • Values in between will receive a gradient color based on their relative position between the Minpoint and Maxpoint.
Number color scale in Google Sheets

This gives you more control over how data is visualized.

Note: The midpoint setting is optional but available in this rule.

3. Percentile Color Scale in Google Sheets

This scale applies gradient colors based on percentiles within the data—perfect for statistical comparisons. A percentile represents the value below which a given percentage of data falls. For example, the 25th percentile marks the point below which 25% of the values lie.

Example settings:

  • Minpoint: 25
  • Maxpoint: 75

Google Sheets will automatically assign gradient colors based on these percentile thresholds.

Gradient colors based on percentile in Google Sheets

Note: This rule supports midpoint percentile configuration.

To calculate percentiles in your sheet:

  • 25% mark: =PERCENTILE(B3:B14, 0.25)
  • 75% mark: =PERCENTILE(B3:B14, 0.75)

4. Percent Color Scale in Google Sheets

The Percent rule in Google Sheets (when Min, Midpoint, and Max types are set to “Percent”) applies gradient colors based on specific percentages of the data range’s numeric span, not based on the data’s rank or distribution.

To map the Min, Midpoint, and Max colors to the actual minimum, midpoint, and maximum values in your dataset, set:

  • Minpoint = 0
  • Midpoint = 50
  • Maxpoint = 100
Percent color scale in Google Sheets

Here’s how it works:

  1. Google Sheets identifies the minimum and maximum numerical values in the selected range.
  2. It calculates a midpoint as the arithmetic mean between the min and max values.
  3. The selected colors are mapped as follows:
    • The Min color is applied to the absolute minimum value
    • The Midpoint color is applied to the calculated midpoint
    • The Max color is applied to the absolute maximum value

All other values are colored using linear interpolation between these anchor points.

Given the values: 1, 2, 3, 4, 6, 8, 8, 10, 15, 25, 50, 60

  • Min value = 1 (Green)
  • Max value = 60 (White)
  • Midpoint = (1 + 60) / 2 = 30.5 (Red)

So:

  • Values near 1 will be shaded green
  • Values around 30.5 will be red
  • Values approaching 60 will be white

Because most values are below 30.5, you’ll see more shades of green and red than white—reflecting the actual skew in the data distribution.

Using Cell References for Min, Mid, and Max Points

Instead of typing values directly into the conditional formatting panel, you can reference cells.

Example:

  • Enter 3.75 in cell F1 and 9.25 in cell F2.
  • In the formatting panel:
    • Set Minpoint to =$F$1
    • Set Maxpoint to =$F$2

This makes your formatting dynamic and easier to update.

Practical Use Cases for Color Scales in Google Sheets

Here are a few real-world scenarios where color scales can make your data more actionable:

  • Education: Highlight student scores or attendance patterns.
  • Sales: Visualize revenue by region, salesperson, or product.
  • Inventory: Track stock levels using green-to-red indicators.
  • Project Management: Show task urgency or completion percentages.
  • Finance: Flag abnormal variances or financial ratios visually.

Color scales bring life to raw numbers and help you analyze data faster without building charts.

Related Tutorials

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Top Discussions

Reservation and Booking Status Calendar Template in Google Sheets

My reservation and booking status calendar template in Google Sheets uses spreadsheet cells as rooms and highlighting to show availability/non-availability. I have used a few...
Multi Row Dynamic Dependent Drop-Down List in Google Sheets

Multi-Row Dynamic Dependent Drop-Down List in Google Sheets

We can create a multi-row dynamic dependent drop-down list in Google Sheets without using Google Apps Script. This tutorial explains how. I will only use...

Date-Related Conditional Formatting Rules in Google Sheets

Based on my experience, much of the conditional formatting in Google Sheets centers around dates. Therefore, in this tutorial, I've included several date-related conditional...
Populate info in Spreadsheet

Auto-Populate Information Based on Drop-down Selection in Google Sheets

Another awesome Google Sheets tutorial! This time, we'll learn how to auto-populate information based on a drop-down selection. Spreadsheet applications are always enticing to me....
USAGE OF DATE IN QUERY SYNTAX

How to Use Date Criteria in Query Function in Google Sheets [Date in Where...

Using dates as the criteria are a complicated part of any criteria formation in the Google Sheet functions. In most cases, you can not...

More like this

Rental Property Manager Template for Google Sheets (Free & Fully Automated)

Do you want to manage all aspects of your rental properties, such as tracking...

Content Calendar Template in Google Sheets (Free, Dynamic & Fully Automated)

Are you a content creator managing posts across multiple platforms — Blogs, YouTube, Twitter...

Funnel Chart in Google Sheets (Dynamic without Helper Columns)

Most tutorials online create a funnel chart in Google Sheets using a stacked bar...

LEAVE A REPLY

This site uses Akismet to reduce spam. Learn how your comment data is processed.