Sub topic 13
Currency and Accounting formats
This chapter assumes you can apply formats with Format Cells and know that a format changes only how a value looks, not what is stored. It also assumes you have read the chapter on custom format codes, because both formats are built from those codes.
Two formats, one purpose
Excel offers two built-in formats for money. Both show a currency symbol and a fixed number of decimal places. They differ in layout.
| Feature | Currency | Accounting |
|---|---|---|
| Symbol position | Next to the number | Aligned at the left edge of the cell |
| Negative numbers | Minus sign, parentheses, or red, your choice | Parentheses |
| Zero | Shows 0.00 | Shows a dash |
| Alignment | Follows the cell alignment | Decimal points line up in a column |
Use Currency for single values in a report or invoice. Use Accounting for columns of figures that readers will add up, because the symbols and decimal points line up vertically.
Applying them
Open Format Cells with Ctrl+1, choose the Currency or Accounting category, then set the decimal places and the symbol. On the Home tab, the Accounting Number Format button applies Accounting with your default symbol. The shortcut Ctrl+Shift+4 applies Currency with two decimals.
What the Accounting format contains
The US Accounting format is a custom code with four sections. Select a cell, open the Custom category, and you will see this:
_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)Reading it section by section:
_(adds a space the width of an opening parenthesis, so positive numbers line up with negative ones.$*followed by a space repeats the space to fill the cell, which pushes the number to the right edge and leaves the symbol at the left.(#,##0.00)wraps negative numbers in parentheses."-"??shows a dash for zero. Each?reserves a digit's width so the dash lines up._(@_)is the text section, with padding on both sides.
Choosing a symbol for a locale
The symbol list in Format Cells is built from codes. You can write one yourself in a custom format. The code in square brackets starts with $, then the symbol, a hyphen, and a hexadecimal locale ID:
[$€-407] #,##0.00Here € is the symbol and 407 is the German (Germany) locale. The locale ID controls locale-specific formatting. Pick the symbol from the Symbol list in Format Cells and Excel writes this code for you.
Common errors
- Using Accounting for a single cell in a text-heavy layout. The wide gap between symbol and number looks odd.
- Expecting the Accounting format to center or left-align. Alignment is largely fixed by the code.
- Typing a symbol with the amount, such as
$5. Excel usually applies Currency itself, but a symbol it does not recognize makes the entry text. - Confusing display with rounding. A cell showing 2.50 may hold 2.4951.
Exercise
A column of invoice totals needs the dollar signs at the left edge, decimal points aligned, and zero values shown as a dash. Which built-in format fits, and which part of its code produces the dash?
Show answer
Use the Accounting format. The third section of its code, _($* "-"??_), applies to zero and displays a dash.
Exercise
You format a cell with [$€-407] #,##0.00 and enter 100. Is the stored value now 100 euros converted from dollars?
Show answer
No. The stored value stays 100. The format adds the euro symbol and German locale formatting. No currency conversion happens.