Number Formatting
After this lesson you can
- Apply currency, percentage and date formats correctly
- Write custom formats for business reporting
- Understand why formatting never changes the stored value
Why this matters
Formatting is a mask, not a change. The cell holds 0.4567; you apply Percentage and it displays 46%. Every formula still uses 0.4567. Miss that distinction and you'll spend an afternoon wondering why two cells showing 46% add up to 91% instead of 92% — and a finance team will reject your report over a one-rupee discrepancy.
How it works
The formats that matter at work
| Format | Use for |
|---|---|
| Number | Quantities, counts |
| Currency | A single standalone amount |
| Accounting | Any column of money — symbol at the cell edge, decimals aligned, zero as - |
| Percentage | Rates, growth, attrition |
| Date / Time | Any date or time column |
| Text | IDs with leading zeros, like 0012345 |
| Custom | Anything you define |
Accounting versus Currency is a small thing people notice. Currency puts ₹640,000 with the symbol tight against the number. Accounting pushes the ₹ to the cell's left edge, aligns all the decimal points, and shows zero as a dash. In a column, Accounting looks right and Currency looks amateur.
Custom formats
Four sections separated by semicolons:
positive ; negative ; zero ; text
#,##0;[Red](#,##0);"-";@
│ │ │ └── text shown as itself
│ │ └───── zero shown as a dash
│ └────────────────── negatives in red, in brackets
└───────────────────────── 1234 becomes 1,234
The codes worth knowing:
| Code | Input | Shows |
|---|---|---|
#,##0 | 1234567 | 1,234,567 |
#,##0, | 6400000 | 6,400 (thousands) |
#,##0,,"M" | 6400000 | 6M (millions) |
0.0% | 0.0854 | 8.5% |
#,##0;[Red](#,##0) | −450 | red (450) |
[h]:mm | 1.5 | 36:00 — hours past 24 |
"EMP-"0000 | 12 | EMP-0012 |
;;; | anything | blank on screen |
dd-mmm-yyyy | 46277 | 12-Sep-2026 |
Each trailing comma divides the display by 1,000. That's the dashboard trick — #,##0,,"M" keeps a KPI tile readable while the cell still holds the full value.
Do it
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | CTC | Hike | Variance |
| 2 | Anil Kumar | 640000 | 0.085 | 24000 |
| 3 | Meera Nair | 1250000 | 0.12 | −18000 |
| 4 | Rahul Shah | 810000 | 0.065 | 0 |
- Select column B. Home → Number Format → Accounting. Click Decrease Decimal twice.
- Select column C. Press Ctrl+Shift+5 for Percentage, then Increase Decimal once →
8.5%. - Select column D. Press Ctrl+1 → Custom → type
#,##0;[Red](#,##0);"-"→ OK. - Row 3 shows red
(18,000). Row 4 shows-.
Prove formatting isn't rounding
- In F1 and F2 both type
2.567. Format both to 2 decimals — both display2.57. - In F3:
=F1+F2. It displays 5.13, because the true total is 5.134. - In G1 and G2:
=ROUND(2.567,2). In G3:=G1+G2→ 5.14.
5.13 versus 5.14. Two cells. Scale that to a 400-row payroll register and finance sends it back.
The dashboard scale trick
- In H1 put
6400000. Press Ctrl+1 → Custom →#,##0,,"M"→ it shows6M. - Click H1 — the formula bar still shows
6400000. The value is untouched.
The timesheet bug
- In J1 put
43hours as a time value — enter43:00. Format ith:mm→ it shows 19:00. - Change the format to
[h]:mm→ 43:00.
Shortcuts
| Shortcut | What it does | When to use it | Example |
|---|---|---|---|
Ctrl + 1 | Format Cells dialog | Custom formats, and everything else | Select the range first |
Ctrl + Shift + ~ | General format — strips all formatting | Seeing the real stored value behind a mask | A date becomes its serial number |
Ctrl + Shift + 5 | Percentage | Rate columns | Attrition, hike, margin |
Ctrl + Alt + V then T | Pastes formats only | Applying a house style to another range | Copy a formatted cell first |
Watch out
| Mistake | What you see | Fix |
|---|---|---|
| Believing display rounding rounds the value | A column of displayed figures doesn't add to the displayed total | ROUND() the values if exactness matters |
h:mm on totals over 24 hours | 43 hours shows as 19:00 | [h]:mm |
Typing ₹ into cells by hand | The value becomes text; SUM breaks | Use an Accounting format |
Expecting % format to divide by 100 | You type 45 and get 4500% | Type 45% or 0.45 |
| Currency on a column of money | Symbols and decimals don't align | Accounting |
| Formatting as Text then entering numbers | They won't calculate | Text format is for IDs with leading zeros only |
| Dividing values to scale a dashboard | Every downstream formula is now out by a factor of a million | Use a number format, never change the data |
Practice
Practice
Scenario
Format a raw compensation extract into a report you'd send to a CHRO.
Dataset: HR Employee Master
Download starter file| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Name | CTC | Hike | Effective | Variance |
| 2 | Anil Kumar | 640000 | 0.085 | 45383 | 24000 |
| 3 | Meera Nair | 1250000 | 0.12 | 45748 | −18000 |
| 4 | Rahul Shah | 810000 | 0.065 | 45383 | 0 |
| 5 | Kabir Menon | 9200000 | 0.155 | 45748 | −45000 |
Your task
- Format B as Accounting with no decimals, C as Percentage with 1 decimal, D as
dd-mmm-yyyy. - Format E with a custom code: positives with a comma separator, negatives in red brackets, zero as a dash.
- In G2, display CTC in millions using a custom format only — no formula. Confirm the formula bar still shows the full value.
- In H2, put
=B2and format it so the cell appears blank but the value still works. Test with=H2*2in I2. - In J2, put
=ROUND(C2,2)and compare it with C2 formatted to 1 decimal. Explain the difference in one line. - Display CTC in lakhs — 640000 as
6.4L. Try a custom format first, then explain why a formula is needed. - Enter
43:00in a cell and format it so it shows 43 hours, not 19.
What you should end up with
Step 2: 24,000 / red (18,000) / - · Step 3: 6M, formula bar shows 640000 · Step 6: no comma combination gives lakhs · Step 7: [h]:mm
Quiz
Question 1 of 3 · Multiple choice
