Sub topic 10
Formatting shortcuts and ribbon key sequences
This chapter covers the keyboard commands that apply number formats and other cell formatting without the mouse. It assumes you know how to enter data and write simple formulas. It also assumes you know that a number format changes how a value is displayed, not what is stored, which the previous chapter covered. The shortcuts below are for Excel on Windows. Mac Excel uses different combinations for some of them.
Why formatting from the keyboard matters
A financial model has thousands of cells that need consistent formatting. Reaching for the ribbon each time is slow and invites inconsistency. Two kinds of keyboard commands cover almost everything:
- Direct shortcuts such as
Ctrl+Shift+5, which apply one format in a single chord. - Ribbon key sequences such as
Alt+H, 0, where you pressAlt, release it, and then press a series of keys one after another. Excel shows small letter badges on the ribbon to guide you.
Direct shortcuts are faster when they exist. Key sequences reach commands that have no direct shortcut.
The built-in number format shortcuts
These shortcuts apply Excel's built-in formats to the selected cells.
Ctrl+Shift+1 Number with comma separator and 2 decimals (#,##0.00)
Ctrl+Shift+4 Currency format
Ctrl+Shift+5 Percentage format (0%)
Ctrl+Shift+3 Date format (d-mmm-yy)
Ctrl+Shift+~ General format
Ctrl+1 Open Format Cells dialog
Alt+H, 0 Increase decimal places
Alt+H, 9 Decrease decimal placesThe digit in each shortcut is on the top row of the keyboard. The numeric keypad digits do not work for these.
What each one does
| Shortcut | Result | Typical use in a model |
|---|---|---|
| `Ctrl+Shift+1` | `#,##0.00` | Quick check of a value with two decimals |
| `Ctrl+Shift+4` | Currency | Per-share data, prices |
| `Ctrl+Shift+5` | `0%` | Margins and growth rates, before adding decimals |
| `Ctrl+Shift+3` | `d-mmm-yy` | Dates entered as raw serial numbers |
| `Ctrl+Shift+~` | General | Resetting a cell to see its raw value |
| `Ctrl+1` | Format Cells dialog | Anything custom |
Treat these as starting points. Most finance teams want parentheses for negatives and dashes for zeros, and none of the built-in shortcuts give you that. The usual workflow is to apply a shortcut for speed, then refine with a custom format, covered in the next chapters.
Adjusting decimals
Alt+H, 0 increases the decimal places and Alt+H, 9 decreases them. Each press changes the display by one place. These are key sequences: press Alt, release it, press H for the Home tab, release it, then press 0 or 9.
A common pattern for a margin row:
- Select the row of margin cells.
- Press
Ctrl+Shift+5to get a percentage. - Press
Alt+H, 0once to show one decimal, such as 24.5%.
This changes only the display. A cell holding 0.24512 still holds 0.24512 and shows 24.5%.
Opening the Format Cells dialog
Ctrl+1 opens the Format Cells dialog on the tab you used last. From here you reach the Number tab and its Custom category, where you type format codes. It also gives access to alignment, font, border, and fill settings. For anything beyond the built-in shortcuts, Ctrl+1 is the entry point.
Ribbon key sequences
Press and release Alt to show key badges on the ribbon. Press the badge for a tab, then the badge for a command. Because you press the keys in order, they are written with commas, as in Alt+H, 0.
The sequences below are widely used in modeling. Badges can differ slightly between Excel versions, so check the on-screen letters if a sequence does not work.
| Sequence | Action |
|---|---|
| `Alt+H, 0` | Increase decimal places |
| `Alt+H, 9` | Decrease decimal places |
| `Alt+H, H` | Open the fill color menu |
| `Alt+H, F, C` | Open the font color menu |
| `Alt+H, B` | Open the borders menu |
| `Alt+H, A, C` | Center align |
| `Alt+H, I, C` | Insert cells... via the Insert menu (columns/rows have their own badges) |
Use the menu sequences to open a menu, then use the arrow keys and Enter, or press a displayed letter, to choose an option. In practice, you can learn the three or four sequences you use most and leave the rest to the badges.
Repeating the last action
F4 repeats your last action when you are not editing a cell. If you just applied a fill color through the menu, select another range and press F4 to apply the same color. Ctrl+Y does the same. This is a quick way to apply a color-coding convention without learning every sequence. The command is not available in every case, and it repeats only the last action, so any other action in between replaces it.
Copying formats without copying values
Formatting often needs to move from one cell to another while leaving the destination's value alone. There are two ways to do it from the keyboard.
- Paste Special, Formats. Copy the source with
Ctrl+C, select the destination, then pressAlt+E, S, Tfollowed byEnterin older menus, orCtrl+Alt+V, thenT, thenEnter. The dialog's Formats option has the underlined letterT. - Format Painter. Press
Alt+H, F, Pto pick up the format of the selected cell, then select the destination.
Both carry the number format with the rest of the formatting. If the source and destination should differ in some respect, such as an input cell with blue font being pasted over a formula cell, format painting overwrites the font color too. In a model that uses color coding, that mistake makes a formula look like an input.
Selecting before formatting
Formatting shortcuts apply to the current selection, so the selection shortcuts from the navigation chapter matter. Two combinations are especially helpful:
Ctrl+Shift+Arrowextends the selection to the edge of a data region. Use it to select a whole row of forecast values before pressing a format shortcut.Ctrl+G, Alt+Sopens Go To Special. Choose Constants or Formulas to select only those cells. You can then apply a font color to all formulas, or to all constants, in one step.
Common errors
- Using the numeric keypad.
Ctrl+Shift+1through5work with the top-row digits. On many keyboards the keypad produces no result. - Forgetting that a sequence is not a chord. In
Alt+H, 0you do not holdAltwhile pressingHand0. Press and release each key. - Applying a percentage format to a number already in percent units. A cell containing 5 formatted with
Ctrl+Shift+5displays 500%. The format multiplies by 100 for display. Enter 0.05 or type5%. - Applying
Ctrl+Shift+3to ordinary numbers. A value such as 1250 will show as a date in 1903. Use this only on real date serial numbers. - Assuming the shortcut sets the style you want. The built-in currency format, for example, uses a currency symbol and a minus sign for negatives. Many models want neither.
- Assuming format changes alter the cell's value. They do not, so a total of displayed values may differ by a rounding unit from the visible components.
A worked sequence
Suppose a sheet has revenue in row 8, columns D through H, and a growth rate in row 9.
- Click D8, then press
Ctrl+Shift+Rightto select D8:H8. - Press
Ctrl+1, go to Custom, and enter#,##0_);(#,##0);"-"_). - Click D9, then
Ctrl+Shift+Right. - Press
Ctrl+Shift+5, thenAlt+H, 0once.
Row 8 now shows thousands separators, with negatives in parentheses and zeros as dashes. Row 9 shows percentages with one decimal. The stored values have not changed.
Exercise
A cell contains the value 0.0875. You press Ctrl+Shift+5 and then Alt+H, 0 once. What does the cell display, and what value does it store?
Show answer
It displays 8.8% (0.0875 formats as 9% with the percentage shortcut, and one more decimal place shows 8.8% after rounding 8.75% for display). The stored value remains 0.0875.
Exercise
You select a range of numbers like 1250 and press Ctrl+Shift+3. What happens, and how do you fix it?
Show answer
Excel treats 1250 as a date serial number and shows a date in 1903. The stored value is still 1250. Press Ctrl+Shift+~ to return to General, or apply a number format such as Ctrl+Shift+1.
Exercise
You paste formats from a blue-font input cell onto a formula cell. Why is this a modeling risk, and how can you find such cells quickly?
Show answer
The formula cell now looks like an input, which breaks the color-coding convention and could mislead a reviewer into overwriting it. Use Ctrl+G, then Alt+S, choose Formulas, and check the font color of the selected cells. Reapply the formula color to them.