Formatting for Clarity

Excel Fundamentals

Chapter 6 · Formatting for Clarity: Number Formats, Conditional Formatting, Cell Styles

Chapter 1 warned that a cell's displayed value and its stored value can differ once formatting is applied — this chapter is where that idea gets properly explained, and where formatting stops being purely cosmetic. Good formatting makes a spreadsheet's story legible at a glance: which numbers are money, which cells need attention, which rows are already resolved. All three tools in this chapter — number formats, conditional formatting, and cell styles — exist to make a worksheet communicate, not just calculate.

Number Formats: Changing Display, Never the Stored Value

A number format controls how a value is shown. It never changes what's actually stored in the cell, and it never affects how that value behaves in a formula — this is the exact mechanism behind Chapter 1's warning box. Common built-in formats, all available from the Home tab's Number group:

FormatStored valueDisplayed as
General19.919.9
Currency19.9$19.90
Percentage0.25625.6%
Comma (thousands separator)12500001,250,000
Date46226 (a date serial number)7/28/2026

Notice Percentage doesn't multiply the stored value by 100 in the cell itself — 0.256 is still stored as 0.256; the format simply moves the decimal and appends a % sign for display. A formula referencing that cell still receives 0.256, not 25.6.

Custom Format Codes: 0 vs. #

Beyond the built-in presets, Excel accepts custom format codes (Format Cells → Custom) built from placeholder characters. The two most common, 0 and #, both represent a digit, but differ in one important way:

0.00 → always shows exactly 2 decimal places, padding with zeros if needed 5 displays as 5.00 #.## → shows up to 2 decimal places, but drops trailing zeros 5 displays as 5 (not 5.00) 5.10 displays as 5.1 $#,##0.00 → currency symbol, thousands separator, always 2 decimals 1250 displays as $1,250.00

0 means "always show a digit here, even if it's a padding zero." # means "show a digit here only if there actually is one." Use 0 when consistent decimal places matter (money should always show two decimals); use # when trailing zeros would just be visual clutter.

Conditional Formatting: Rules That React to the Data

Conditional formatting applies formatting automatically, based on a rule, and keeps re-evaluating that rule every time the underlying data changes — unlike manually colouring a cell once, which never updates itself. From Home → Conditional Formatting, the built-in categories cover most everyday needs:

  • Highlight Cell Rules — greater than, less than, between, equal to, text containing, duplicate values.
  • Top/Bottom Rules — top 10 items, top 10%, above/below average.
  • Data Bars — an in-cell bar whose length scales with the value, letting a whole column be scanned visually without reading a single number.
  • Color Scales — a gradient (e.g. red → yellow → green) applied across a range based on each value's relative position.
  • Icon Sets — small icons (arrows, traffic lights, flags) assigned per cell based on value thresholds.

Formula-Based Conditional Formatting

The built-in rules above only look at the cell being formatted, in isolation. A custom formula rule (New Rule → "Use a formula to determine which cells to format") can react to a completely different cell — including highlighting an entire row based on one column's value.

Rule applied to A2:D10, formula entered as: =$C2<0 → highlights the ENTIRE row whenever that row's column-C value is negative

This is Chapter 3's reference-locking rules in a new context: the formula is written as if it applies to the top-left cell of the selected range (here, A2), and Excel silently re-applies it to every other cell in the selection using the exact same relative/absolute logic as a normal filled formula. Locking the column with $C2 (column locked, row left relative) is what makes the rule check column C specifically for every row, while still letting the row number adjust so each row checks its own value.

Cell Styles: Reusable, Named Formatting

A Cell Style (Home → Cell Styles) is a saved, named bundle of formatting — font, colour, borders, number format — that can be applied in one click and updated everywhere at once by editing the style itself, rather than by re-formatting every cell individually. Built-in styles include semantic ones like Good (green), Bad (red), Neutral (amber), and structural ones like Input, Output, and heading levels.

The advantage over manually formatting each cell shows up the moment a design decision changes: update the "Input" cell style's fill colour once, and every cell that was ever tagged with that style updates automatically — versus having to hunt down and re-colour every individual cell that used to look that way.

Formula-based conditional formatting always refers to the top-left cell of the selection
When writing a custom formula rule, always write it as though you were typing it directly into the very first (top-left) cell of the range you're about to apply it to — Excel handles adjusting it, row by row and column by column, for every other cell in the selection automatically, using the same relative/absolute mechanics from Chapter 3.
Multiple conditional formatting rules on the same range are evaluated in order
If two rules could both apply to the same cell, Excel evaluates them in the order they're listed in the Conditional Formatting Rules Manager, and a rule with "Stop If True" checked prevents any rule listed below it from being applied at all. An unexpected formatting result is often not a broken formula — it's a higher-priority rule further up the list quietly winning before the rule you were expecting ever gets evaluated.

Hands-On Exercises

Exercise 1

Cell A1 contains the number 0.075. Apply the Percentage number format to it. State exactly what value is now stored in A1, what is displayed, and what a formula like =A1*200 in another cell would return. Explain why the stored value did not become 7.5.

📄 View solution
Exercise 2

A table of student records spans A2:D20, with the score in column D. Write a formula-based conditional formatting rule (applied to the whole range A2:D20) that highlights an entire row whenever that row's score in column D is below 50. Write out the exact formula you'd enter and explain which part of the reference must be locked for this to work correctly across every row.

📄 View solution
Exercise 3

A range has two conditional formatting rules: Rule 1 highlights cells greater than 100 in green, with "Stop If True" checked. Rule 2 highlights cells greater than 50 in yellow. For a cell containing 150, which colour actually gets applied, and why doesn't the cell end up yellow even though 150 is also greater than 50?

📄 View solution

Chapter 6 Quick Reference

  • Number formats change display only — the stored value, and what formulas receive, never changes
  • 0 = always show a digit (pads with zero); # = show a digit only if present (drops trailing zeros)
  • Conditional formatting re-evaluates automatically whenever the underlying data changes
  • Formula-based rules are written for the top-left cell of the selection; $ locking (Chapter 3) controls how the rule adjusts across the rest of the range
  • Cell Styles are named, reusable formatting bundles — editing the style updates every cell that uses it
  • Rules are evaluated top to bottom in the Rules Manager; "Stop If True" prevents lower rules from being applied at all