Sub topic 9
Formatting for Readability
This chapter assumes you can open a spreadsheet, select cells, and type values and simple formulas such as =SUM(B2:B6). You should also know that Sheets treats text, numbers and dates differently. Formatting changes how data looks. It does not change what is stored in a cell, and that distinction explains most of the surprises in this chapter.
The working model: value versus display
Every cell has two layers. The value is what Sheets stores and uses in calculations. The display is how that value is shown on screen and in print. Formatting changes only the display.
For example, if you type 0.075 and apply percent format, the cell shows 7.5%. The stored value is still 0.075. A formula such as =B2*100 returns 7.5, not 750.
Stored value: 1234.5678
Format: Number, 2 decimals -> displays 1,234.57
Format: Currency -> displays $1,234.57
Format: Plain text -> displays 1234.5678Rounding in the display does not round the value. If you add three cells that each show 1.33 but store 1.3333, the total can display 4.00 while the visible numbers appear to add up to 3.99. To change the stored value, use a function such as ROUND.
=ROUND(B2, 2)Formatting layers
Sheets applies formatting in several places. Knowing which one you are using saves time.
| Layer | What it controls | Where to find it |
|---|---|---|
| Number format | How a value is shown: currency, percent, date, decimals | Format > Number, or toolbar buttons |
| Text style | Font, size, bold, italic, underline, strikethrough, color | Toolbar or Format > Text |
| Alignment | Horizontal, vertical, and text wrapping | Toolbar or Format > Alignment and Wrapping |
| Cell appearance | Fill color, borders, merged cells | Toolbar |
| Row and column size | Height and width, hidden and frozen rows or columns | Right-click header, or View > Freeze |
| Conditional formatting | Style that changes depending on the value | Format > Conditional formatting |
Number formats
Select the cells first, then choose a format. The most common ones are:
- Automatic: Sheets guesses from what you typed. Typing
5/3may become a date. Typing$5becomes currency. - Number: Optional thousands separators and a fixed number of decimals.
- Percent: Multiplies the display by 100 and adds
%. - Currency: Adds a symbol and two decimals. The symbol follows your spreadsheet locale unless you pick another.
- Date, Time, Date time: Shows a date serial number in a readable form.
- Plain text: Treats what you type literally.
The toolbar has buttons for currency, percent, and increasing or decreasing decimal places. The decimal buttons change the display only.
Dates and locale
A date is stored as a number: the count of days since December 30, 1899. The format decides whether it appears as 11/27/2026, 27/11/2026, or Fri, Nov 27. The default pattern comes from the spreadsheet's locale in File > Settings. If your dates look reversed, check the locale before you retype anything.
You can also build a custom pattern with Format > Number > Custom date and time. For example, the pattern yyyy-mm-dd shows 2026-11-27, a sortable and unambiguous form.
Plain text and the leading zero problem
If you type 00123 in an Automatic cell, Sheets stores the number 123 and drops the zeros. To keep codes such as ZIP codes or product IDs, set the cells to Plain text before typing. Alternatively, type an apostrophe first ('00123). The apostrophe is not displayed.
Formatting that confuses formulas
Text that looks like a number will not be calculated. If =SUM(B2:B6) returns a total that is too low, some cells may be text. Signs of this:
- Values are left-aligned by default while numbers are right-aligned.
- A cell shows
$1,200but the format is Plain text. - Numbers imported from another system carry a trailing space.
Fix this by retyping the value in a cell formatted as Number, or by using =VALUE(B2) in a helper column.
Text style, alignment and wrapping
Use text style to create a visual hierarchy. A common pattern is a bold header row with a fill color, and normal weight for data. Keep the number of fonts and colors small. Two or three colors with consistent meaning are easier to read than many.
Alignment has two directions. Horizontal alignment places text left, center, or right. Vertical alignment places it at the top, middle, or bottom of a tall cell. Numbers should usually stay right-aligned so the decimal points line up, which makes columns easy to compare. Headers over numeric columns look best right-aligned too, so they sit over their data.
Text that is longer than the cell has three behaviors, found under Format > Alignment and Wrapping or the toolbar wrap button:
| Option | Behavior |
|---|---|
| Overflow | Text spills into the empty cell on the right. If that cell has content, the text is cut off. |
| Wrap | Text breaks onto more lines and the row grows taller. |
| Clip | Text is cut at the cell edge. The full text stays in the cell. |
Wrap is usually the best choice for notes and descriptions. Overflow is the default for text, which is why long labels sometimes seem to vanish when you type something in the next cell.
Borders, fill colors and merged cells
Borders and fills separate parts of a sheet. Use light gray borders for data areas and a heavier border to mark a total row. Use fill color for header rows and for a few cells you want to draw attention to, such as input cells.
Merging combines several cells into one. It is tempting for titles, but it has costs:
- Merged cells can break sorting and filtering, because those operations need a regular grid.
- Selecting a column or copying a range that includes a merge can behave unexpectedly.
- Formulas that refer to a merged area use only its top-left cell.
For a title that should span several columns, consider leaving the cells unmerged and letting the text overflow. If you need a centered look, Format > Alignment > Center across selection is not available in Sheets, so merging is acceptable only for pure titles above the data, never inside it.
Rows and columns
Size and visibility affect readability as much as fonts do.
- Resize. Drag the border between two column letters, or double-click it to fit the widest value. For several columns, select them all and resize one. All will take the same width.
- Insert and delete. Right-click a header and choose to insert above, below, left, or right. Formulas that refer to ranges adjust automatically.
- Hide. Right-click a header and choose Hide. A small arrow marks the spot. Hidden data still counts in formulas. Hiding is not a security measure, because anyone who can view the file can unhide it.
- Freeze. Use View > Freeze to keep the header row or first columns visible when you scroll. Freezing one row and one column is the usual setup for a table.
Conditional formatting
Conditional formatting changes the appearance of a cell based on its value. Select a range, choose Format > Conditional formatting, and add a rule. A rule has a range, a condition, and a style.
Examples of useful rules:
- Fill a cell red when the value is less than 0.
- Fill a row green when the status column equals "Done". This uses a custom formula such as
=$D2="Done", applied to the whole row range. - Show a color scale from low to high across a column of scores.
In a custom formula rule, write the formula as if for the first cell of the range. Use a $ before the column letter to keep the column fixed while the row changes. Without the $, the rule would test a different column for each cell, and the colors would look random.
If two rules overlap, the rule higher in the list wins. You can drag rules to reorder them.
Alternating colors and clearing formats
Format > Alternating colors adds banded rows with a styled header and footer. It is useful for long tables because it helps the eye follow a row across. The bands apply to the range, so new rows added inside the range are banded too.
To undo formatting, select the cells and choose Format > Clear formatting (or press Ctrl+\ on Windows, Cmd+\ on Mac). This removes styles and number formats but keeps the values. To copy the look of one cell to others, use the paint format tool in the toolbar, or copy and use Paste special > Format only.
A worked example
Suppose you track expenses with these columns: Date, Item, Quantity, Unit price, Total. The Total column uses =C2*D2.
- Type the headers in row 1. Select row 1, then make it bold with a light fill.
- Select column A, then choose Format > Number > Date. Select column D and column E and choose Currency. Leave Quantity as Number with no decimals.
- Right-click the column B header, choose Resize column, and fit it to the data. Turn on wrapping if the item names are long.
- Choose View > Freeze > 1 row.
- Below the data, in E7, enter
=SUM(E2:E6). Make it bold and add a top border to mark it as a total. - Add a conditional rule on E2:E6 that fills cells above 100 in light orange, to flag large expenses.
Setting number formats before styling means you can see at once whether a column holds real numbers or text. Conditional rules go last because they depend on the final layout.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Dates display as numbers such as `46353` | Cell has a Number format | Apply a Date format |
| A total is lower than expected | Some values are stored as text | Reformat and retype, or use `VALUE` |
| Leading zeros disappear | Cell was Automatic when typed | Use Plain text before typing |
| Sorting puts rows in the wrong order | Merged cells inside the data | Unmerge them |
| Conditional colors look random | Missing `$` in the custom formula | Anchor the column with `$` |
| Cell shows `#####` | Column too narrow | Widen the column |
| Visible numbers do not add up | Display is rounded, value is not | Use `ROUND` on the values |
Habits that keep sheets readable
- Format a whole column once, rather than cell by cell, so new rows inherit it.
- Keep one kind of data in each column.
- Put headers in a single row, with no merged cells.
- Use color to carry meaning, and explain the meaning in a note on the sheet.
- Do not rely on color alone. Some readers cannot tell certain colors apart, so add a text label such as "Overdue".
Exercise
A column of prices displays as $4.50, $3.25, and $2.10, and the cell below shows =SUM(B2:B4) as $9.90. You then change the format of B2:B4 to Number with 0 decimals. The cells now show 5, 3, and 2, and the sum cell shows 10 after you also change its format. Did the formatting change the stored values, and what would the total be if you wanted it to reflect the rounded figures?
Show answer
No. Formatting changed only the display, so the stored values are still 4.5, 3.25, and 2.1, and the sum is still 9.85 (shown as 10 after rounding to 0 decimals). Note that the $9.90 in the question is itself a display of the stored sum 9.85, so check your own arithmetic against the stored values. To make the total reflect the rounded figures, apply ROUND to the values, for example =SUM(ROUND(B2,0), ROUND(B3,0), ROUND(B4,0)), which returns 10 only if the rounded values 5, 3 and 2 are used. Note that this gives 10 as well.
Exercise
You want every row in A2:E50 to turn light green when the value in column D of that row is "Done". Which custom formula do you enter in the conditional formatting rule, and why does it need a dollar sign?
Show answer
Apply the rule to the range A2:E50 and use the custom formula =$D2="Done". The $ fixes the column to D, so every cell in a row checks column D. The row number has no $, so it changes from row to row. Without the $, cell B2 would test C2, cell C2 would test D2, and so on, which makes the colors look random.
Exercise
You type 00482 into a cell and Sheets shows 482. Name two ways to keep the leading zeros when you enter such a code.
Show answer
Set the cell or column to Plain text (Format > Number > Plain text) before typing, or type an apostrophe first, as in '00482. Changing the format after you type does not restore the zeros.