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. It assumes you know the main idea of the previous chapter: a number format changes how a value looks, not what is stored. Here you will learn the three ways to apply a format, what each one does, and where they differ.
Three routes to the same result
Excel gives you three ways to set a number format. All three write the same property on the cell, so none of them changes the stored value.
- The Format Cells dialog gives full control, including custom codes.
- The Ribbon (Home tab, Number group) gives one-click access to common formats.
- Keyboard shortcuts apply a fixed set of common formats without leaving the keyboard.
The Format Cells dialog
Select the cells, then open the dialog in any of these ways:
- Press Ctrl+1 (on a Mac, Command+1).
- Right-click and choose Format Cells.
- Click the small arrow in the bottom-right corner of the Number group on the Home tab.
The dialog has several tabs: Number, Alignment, Font, Border, Fill, and Protection. Only the Number tab controls how a value is displayed.
The Number tab lists categories. Each category has its own options on the right.
| Category | Options you can set |
|---|---|
| General | None. Excel picks a display based on the value. |
| Number | Decimal places, thousands separator, how negatives look |
| Currency | Decimal places, symbol, how negatives look |
| Accounting | Decimal places, symbol |
| Date, Time | A list of types, and a locale |
| Percentage, Scientific | Decimal places |
| Fraction | A list of fraction types |
| Text | None |
| Special | Locale-specific types such as ZIP Code or Phone Number |
| Custom | A format code that you type |
The Sample box above the options shows a preview. It uses the active cell, which is the first cell of your selection, so check that cell holds a representative value.
Every category you pick in the dialog is converted into a format code. Choose a category, then switch to Custom. The code field shows the code Excel built for you, and you can edit it. This is the easiest way to learn custom codes, which a later chapter covers.
The Ribbon
On the Home tab, the Number group has a dropdown and a row of buttons.
The Number Format dropdown shows the current category. Its list includes General, Number, Currency, Accounting, Short Date, Long Date, Time, Percentage, Fraction, Scientific, and Text. More Number Formats at the bottom opens the Format Cells dialog.
The buttons below the dropdown apply these formats:
| Button | Effect |
|---|---|
| Accounting Number Format ($) | Accounting format with a currency symbol. Its dropdown offers other currencies. |
| Percent Style (%) | Percentage with no decimal places |
| Comma Style (,) | Thousands separator and two decimals, with no currency symbol |
| Increase Decimal | Adds one decimal place to the display |
| Decrease Decimal | Removes one decimal place from the display |
Two details are easy to miss.
First, Short Date and Long Date follow your Windows or macOS regional settings. The same workbook can display differently on a computer with a different region. The Date category in the dialog gives you fixed choices, and the choices marked with an asterisk follow the system settings.
Second, Comma Style is not the Number category. In US settings it uses the Accounting layout without a symbol. Zero displays as a dash, and negatives appear in parentheses. The code looks like this:
_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)If you want a thousands separator with zero shown as 0.00 and negatives with a minus sign, use the Number category in the dialog instead.
Increase Decimal and Decrease Decimal change the displayed digits only. The stored value stays the same, as the next chapters on rounding explain. They also work on General cells. They switch the cell to a number format that has the decimal places you chose.
Keyboard shortcuts
These shortcuts work on Windows. On a Mac, the Control key replaces Ctrl, so they are Control+Shift+ the same character.
| Shortcut | Format applied |
|---|---|
| Ctrl+Shift+~ | General |
| Ctrl+Shift+! | Number: two decimals, thousands separator, negatives with a minus sign |
| Ctrl+Shift+$ | Currency: two decimals, currency symbol, negatives in parentheses |
| Ctrl+Shift+% | Percentage: no decimals |
| Ctrl+Shift+^ | Scientific: two decimals, such as 1.23E+04 |
| Ctrl+Shift+# | Date: day, month abbreviation, year, such as 27-Nov-26 |
| Ctrl+Shift+@ | Time: hour and minute with AM or PM |
Each shortcut uses the Shift symbol on its key, so the third key is the number or symbol key on the top row. The shortcuts apply fixed formats from the US layout. On keyboards that lay out those symbols differently, the key combination can be awkward. Using the Ribbon or Ctrl+1 then avoids the problem.
Note that Ctrl+Shift+# is a different format from the Short Date choice in the Ribbon. The shortcut always gives the same d-mmm-yy pattern, and Short Date follows system settings. If two colleagues format dates with different methods, their columns can look different even though both are dates.
Typing into formatted cells
The format of a cell also affects how Excel reads what you type.
- In a cell that is formatted as Percentage, typing
25normally gives 25%, because Excel's automatic percent entry option is on by default. You can turn it off under File > Options > Advanced. - In a General cell, typing
25%applies the percentage format for you. - In a General cell, typing
$12.50applies a currency format, and typing3/4can turn into a date. - In a cell formatted as Text, Excel keeps whatever you type as text, including numbers.
Excel's automatic formatting on entry is a common source of surprises. A later chapter covers text format and leading zeros. For now, remember that applying the Text format after you enter a number does not turn that number into text. It affects only values you enter afterward.
Copying and clearing formats
Often you want to reuse a format instead of building it again.
- Select a cell that has the format you want.
- On the Home tab, click Format Painter (the paintbrush). Double-click it to keep it active for several selections, and press Esc to stop.
- Select the target cells.
You can also copy the cell, select the targets, and use Paste Special > Formats. This leaves the target values unchanged.
The fill handle copies formats too. After you drag it, the Auto Fill Options button lets you choose Fill Without Formatting.
To remove formatting, choose Home > Clear > Clear Formats. This resets the number format to General, and it also removes fonts, fills, and borders. To reset only the number format, select General from the Number Format dropdown, or press Ctrl+Shift+~.
Formatting ranges, columns, and tables
You can apply a format to a single cell, a range, or an entire column. When you format a whole column, new data entered later gets the same format. This is useful for fields such as dates or currency amounts. Excel tables copy the format down automatically when you add a new row.
Cell formats are separate from cell styles. A style, such as Currency or Percent in the Styles group, bundles a number format with a font and fill. If you apply a style, later edits to the style change every cell that uses it. A directly applied number format does not have this link.
Verifying what you applied
To check which format a cell has, select the cell and look at the Number Format dropdown on the Home tab. It shows the category name. For the exact code, open Ctrl+1, go to Custom, and read the Type field. The formula bar shows the stored value, so compare it with the cell display when you are unsure what is happening.
Exercise
Cell B2 contains the number 0.075. You select it and press Ctrl+Shift+%. What does the cell display, what does the formula bar show, and what would the display be if B2 had contained 7.5?
Show answer
The cell displays 8% because the Percentage shortcut uses no decimals and rounds the display of 7.5%. The formula bar still shows 0.075. If B2 had contained 7.5, the cell would display 750%, because the Percentage format multiplies the stored value by 100 for display.
Exercise
A coworker formats a date column with Ctrl+Shift+#, and you format yours with the Short Date button. Why might the two columns look different on the same computer, and where would you look to find the exact code for each?
Show answer
Ctrl+Shift+# always applies the fixed d-mmm-yy pattern, such as 27-Nov-26. Short Date follows the system regional settings, for example 11/27/2026 in a US setup. To see each code, select a cell, press Ctrl+1, choose the Custom category, and read the Type field.