Sub topic 4
Shading Numbers with Color Scales
Assume you can navigate Google Sheets, enter values, and select a range such as B2:B20. This chapter focuses on color scales, a conditional formatting rule that shades cells according to their numeric values.
What a color scale does
A color scale compares the numbers in a selected range. It then assigns colors based on each number's position between the lowest and highest values.
For example, a sales column might use:
- Red for the lowest values
- Yellow for values near the middle
- Green for the highest values
The colors show a pattern quickly. You can see which products sold the most without sorting the sheet or reading every number.
A color scale changes the cell's background color or text color. It does not change the underlying value, formula, sort order, or number format.
Create a color scale
Suppose B2:B11 contains monthly sales totals.
- Select
B2:B11. - Open Format and choose Conditional formatting.
- In the sidebar, select the Color scale tab.
- Choose a preset, such as red for low values and green for high values.
- Review the preview on the sheet.
- Select Done.
Google Sheets usually uses the minimum value as the low point and the maximum value as the high point. With a three-color scale, it uses a midpoint as well.
| Setting | Meaning |
|---|---|
| Minpoint | The color for the lowest end of the range |
| Midpoint | The color for the middle of the range |
| Maxpoint | The color for the highest end of the range |
You can change the type of each point. Common choices include:
- Min value or Max value, which use the actual range limits
- Number, which uses a fixed number
- Percent, which uses a percentage of the numeric range
- Percentile, which compares a value with the distribution of values
For a simple sales list, Min value, Percentile, and Max value often provide a useful relative comparison. For a target-based report, fixed numbers may be better.
Choose the right scale
A color scale is most useful when the numbers are comparable. For example, a range containing the same metric for several products is a good candidate.
Be careful when the range contains different kinds of values. A scale applied to a column containing sales totals, notes, and percentages may produce a misleading result. Select only the cells that share the same meaning and unit.
The choice between a two-color and three-color scale affects how people read the sheet:
- A two-color scale shows a low-to-high transition.
- A three-color scale emphasizes a middle point.
- A reversed scale can show that low values are desirable, such as response times or defect counts.
Use colors that match the meaning of the data. Green does not always mean “good,” and red does not always mean “bad.” Add a heading or note when the meaning might be unclear.
How the range affects the colors
The Apply to range field controls which cells are compared. If you apply a scale to B2:B11, each value is evaluated against the other values in that range.
If you expand the range to B2:B100, the same value may receive a different color because the minimum and maximum may have changed. This matters when new rows are added.
You can include a larger planned range, such as B2:B100, before entering all the data. However, blank cells can make the formatting harder to interpret, and later values may change the scale. Keep the range wide enough for expected data but not unnecessarily large.
Common errors
Comparing unrelated ranges
Applying one color scale across columns with different units makes the colors difficult to interpret. Use separate rules for separate metrics.
Treating color as an exact value
A shade represents a relative position, not a precise category. Two similar shades may represent different numbers, and the same number may receive a different shade after the range changes.
Including totals
A total row can become the maximum value and make every detail row look low. If the total has a different purpose, exclude it from the color-scale range or give it a separate format.
Ignoring accessibility
Color alone may not communicate enough information. Keep the numbers visible and use clear labels. Avoid combinations that are difficult for people with color-vision differences, especially red and green without another cue.
Practice
Create a small table with product names in column A and sales totals in column B. Apply a two-color scale to the sales totals. Then change it to a three-color scale and observe how the midpoint changes the appearance. Add a new row with a value much higher than the others and check how the existing colors change.
Exercise
A column contains response times, and lower values are better. Which color-scale direction should you use?
Show answer
Use the scale so the lowest values receive the color that communicates better performance, such as green, and the highest values receive the warning color, such as red. Check the legend or add a note so the direction is clear.