Sub topic 2
Applying formats with Format Cells, the Ribbon, and shortcuts
This chapter assumes you can enter and edit data in cells, write a basic formula such as =A1+B1, and select ranges and use the Ribbon. Excel gives you several ways to apply a number format. They all do the same thing: they change how a value is displayed, not the stored value.
Three routes to the same setting
Select the cells first. The format applies to every cell in the selection.
The Ribbon
On the Home tab, the Number group has:
- A Number Format drop-down that lists General, Number, Currency, Accounting, Short Date, Long Date, Time, Percentage, Fraction, Scientific, and Text.
- One-click buttons for Accounting Number Format, Percent Style, and Comma Style.
- Increase Decimal and Decrease Decimal, which add or remove one decimal place per click.
The small arrow at the bottom right of the group opens the Format Cells dialog.
The Format Cells dialog
Press Ctrl+1 (Cmd+1 on a Mac) or right-click and choose Format Cells. The Number tab lists categories. Choosing one shows options for it, such as decimal places and how negatives look. A Sample line previews the result using the active cell's value.
The Custom category shows the format code behind whatever you picked, and lets you type your own. For example, entering this code shows 42 as 00042:
00000Chapter sections later in this tutorial explain how such codes work. For now, note that Custom is where you can inspect any built-in format.
Keyboard shortcuts
On Windows, these shortcuts apply a preset format to the selection:
| Shortcut | Format applied |
|---|---|
| `Ctrl+Shift+~` | General |
| `Ctrl+Shift+!` | Number, two decimals, thousands separator |
| `Ctrl+Shift+$` | Currency, two decimals, negatives in parentheses |
| `Ctrl+Shift+%` | Percentage, no decimals |
| `Ctrl+Shift+^` | Scientific, two decimals |
| `Ctrl+Shift+#` | Date as day-month-year, for example 27-Nov-26 |
| `Ctrl+Shift+@` | Time with hour, minute, and AM or PM |
Copying and removing formats
- Format Painter (Home tab, Clipboard group) copies the format of one cell onto others. Double-click it to paint several targets.
- Paste Special > Formats pastes only the formatting of copied cells.
- Clear > Clear Formats (Home tab, Editing group) returns cells to General and also removes fonts, fills, and borders.
Exercise
Cell A1 contains 0.256 and is formatted as General. You press Ctrl+Shift+%. What does A1 display, and what value is stored in the cell?
Show answer
A1 displays 26%, because the Percentage shortcut shows no decimals and rounds the display. The stored value is still 0.256. Only the display changed.