Sub topic 10
Formatting text: fonts, size, color, and style
This chapter covers how to change the look of text in Google Sheets: font family, size, color, and style. It assumes you can select cells and ranges, enter values, and tell the difference between what a cell stores and what it displays. Those ideas come from the earlier chapters on cells and number formats.
What text formatting changes
Text formatting changes how a cell looks. It does not change the value stored in the cell. A cell that holds the number 1234.5 still holds 1234.5 whether it is bold, red, or set in a different font. Formulas that read the cell get the same result either way.
This matters for two reasons. First, you can restyle a whole sheet without breaking any calculation. Second, formatting does not travel with a value through a formula. If A2 is bold and B2 contains =A2, B2 is not bold. Each cell keeps its own formatting.
Formatting applies to whatever is selected:
- A single cell formats that cell.
- A range formats every cell in it.
- A whole row or column formats every cell in it, including cells you add later in that row or column.
Select first, then format. If you format with nothing selected beyond the active cell, only that cell changes.
Where the controls are
Most text formatting is in the toolbar above the grid. The same options exist under the Format menu, which is useful when the toolbar is narrow and hides some buttons behind a "More" (three dots) menu.
| Control | What it does | Keyboard shortcut (Windows/ChromeOS) |
|---|---|---|
| Font family | Changes the typeface | None |
| Font size | Sets size in points | Ctrl+Shift+. increases, Ctrl+Shift+, decreases |
| Bold | Heavier strokes | Ctrl+B |
| Italic | Slanted letters | Ctrl+I |
| Underline | Line under text | Ctrl+U |
| Strikethrough | Line through text | Alt+Shift+5 |
| Text color | Color of the characters | None |
On a Mac, use Cmd in place of Ctrl, and Cmd+Shift+X for strikethrough. Shortcuts can differ by browser and keyboard layout. If one does not work, use the toolbar.
Font family and size
The default font in a new spreadsheet is Arial at 10 points. You can pick another family from the font dropdown. The list shows common fonts and has a More fonts option to add others from the Google Fonts library.
Keep these points in mind:
- Fonts you add through More fonts are available in Sheets for you and for anyone who opens the file in Sheets. A person who exports the file to Excel or another program may see a substitute font if theirs does not have it installed.
- Size is measured in points. Sizes from 6 to 400 are available, and you can type a value into the size box instead of using the preset list.
- Changing size does not change row height by hand-set rules. Rows that have not been manually resized grow to fit larger text. A row you have dragged to a fixed height stays that height, and tall text is clipped.
To change the default for everything, use Format > Theme. The theme sets a font for the whole spreadsheet, such as headings and body text, so you do not have to restyle each range. Cells that you formatted with an explicit font are not changed by theme edits.
Bold, italic, underline, and strikethrough
These four styles stack. A cell can be bold and italic and underlined at once. Pressing the same shortcut again turns the style off.
A common use is a header row: bold text, sometimes a slightly larger size, so the labels stand apart from the data. Strikethrough works well for task lists where a finished item should stay visible.
One edge case: styles apply to the whole cell when the cell is selected, but they can apply to only part of the text when you are editing inside the cell. Double-click a cell (or press F2), select some of the characters, and then press Ctrl+B. Only those characters become bold. This is called rich text formatting within a cell. It only works on text, not on values that Sheets treats as numbers or dates, which always display with a single style.
Text color and highlight color
The Text color button (a letter A with a colored bar) changes the characters. It opens a palette with standard colors and a Custom option where you can enter a hex code such as #1155cc.
The Fill color button (a paint bucket) changes the cell background. Fill color is covered in a later chapter on borders and fills, but the two work together here: low-contrast pairs are hard to read.
Practical guidance on color:
- Check contrast. Light gray text on a white background, or red text on a green fill, can be hard to read, and some people cannot tell red from green at all.
- Do not use color as the only signal. If red means "overdue," also include a word or symbol in another column.
- Use few colors. A handful of consistent choices reads better than many.
Copying a format with paint format
When you want one cell's look on other cells, use Paint format (the paint roller icon) instead of restyling by hand.
- Select the cell or range that has the formatting you want.
- Click Paint format.
- Select the target cells. The format is applied when you release the mouse.
Double-click Paint format to keep it active and paint several separate areas. Press Esc to stop. Paint format copies all formatting, including number format, borders, and fills, not only text style.
To remove formatting, select the cells and choose Format > Clear formatting, or press Ctrl+\\. The values stay. The cells return to the default font, size, color, and style.
Formatting that combines with other rules
Text appearance can come from more than one source, and the sources have an order.
Conditional formatting can change text color, bold, italic, underline, and strikethrough, and fill color. It cannot change font family or size. When a rule matches, its settings take priority for the properties it sets. When the rule stops matching, your manual formatting shows again. Nothing was lost. The later chapter on conditional formatting covers this in detail.
Common errors
- Formatting seems to disappear after paste. Pasting normally brings in the source's formatting too. To paste only values, use Paste special > Values only, or press Ctrl+Shift+V. Then the destination keeps its own look.
- Text is cut off in a row. The row was resized to a fixed height. Double-click the border under the row number to autofit it, or turn on wrapping.
- Part of a cell is styled, then the whole cell reverts. Applying a style to the whole cell afterward overrides the partial styling. Edit inside the cell again to restyle only some characters.
- A new row looks different from the rows above it. Inserted rows copy formatting from the row above or below, depending on the insert option. Use paint format to match.
- Pasted web text brings an odd font. Use Ctrl+Shift+V to paste without formatting, then apply your own.
Worked example
You track monthly expenses in A1:C10, with headers in row 1.
- Select row 1 by clicking the row number. Press Ctrl+B to make the headers bold.
- With row 1 still selected, set the font size to 11 using the size box.
- Choose a dark blue text color from the palette, or enter
#1c4587under Custom. - Select A2:A10 and set the font family to a different typeface if you want labels to stand apart. Skip this if one font is enough.
- Double-click cell C5, select a single word in a note, and press Ctrl+I to italicize just that word.
- Select B2:B10 and click Paint format with B2 chosen first to carry its look across the range.
- Select A1:C10 and press Ctrl+\\ to see the clearing behavior, then Ctrl+Z to undo it.
At no point did any value change. If you add =SUM(B2:B10) in B11, it returns the same total before and after all of this styling.
Exercise
Cell A2 is bold and red, and cell B2 contains the formula =A2. Will B2 appear bold and red? Explain, and name the two ways to make B2 match A2.
Show answer
No. Formatting belongs to each cell and is not passed through formulas. B2 shows A2's value but keeps its own style. To make B2 match, either select A2, click Paint format, and then select B2, or apply bold and the red text color to B2 directly.
Exercise
You type a long sentence in cell D3. You select only the first word while editing the cell and press Ctrl+B. Then you select the whole cell and press Ctrl+I. What does the cell look like, and what happens if the cell holds the number 42 instead?
Show answer
For the sentence, the first word stays bold (partial formatting is kept) and the whole cell becomes italic, so the first word is bold italic. For the number 42, partial formatting is not possible because a number displays with a single style, so any style applies to the entire cell.