Display Numbers in K / Millions

Excel Formulas › Advanced

All versionsFormatting

Big numbers crowd a dashboard. A trailing comma in the format code scales the display by thousands — show $4,200,000 as “4.2M” while the cell keeps its full value.


Quick formula: Format Cells → Custom:
#,##0.0,, "M"
Each trailing comma divides the displayed number by 1,000. Two commas show millions; one shows thousands (K).

Functions used (tap for the full reference guide):

The example

Full values displayed compactly.

AB
1ValueDisplays
24,200,0004.2 M
385,00085 K

The formula

Trailing commas scale the display:

#,##0.0,, "M" → millions #,##0, "K" → thousands // value unchanged, display scaled

How it works

A comma at the end of a format means “divide by 1,000”:

  1. One trailing comma scales the display by 1,000 (thousands → K).
  2. Two trailing commas scale by 1,000,000 (millions → M).
  3. Add a label in quotes — " K", " M" — and decimals (#,##0.0) for precision.
  4. The cell still holds the true number; only the appearance changes, so charts and formulas are unaffected.

Auto-scale per value? A single format can’t switch between K and M based on size. For that, build a label with a formula: =TEXT(A1/1e6,"0.0")&"M" when ≥ 1M, else K — or use conditional number-format sections for two thresholds.

Try it: interactive demo

Live demo

Pick a scale; value stays the same.

Displays:

Variations

Thousands (K)

One trailing comma:

#,##0, "K"

Auto label (formula)

Switch K/M by size:

=TEXT(A1/1e6,"0.0")&"M"

Millions, no decimals

Whole millions:

#,##0,, "M"

Pitfalls & errors

Commas must be trailing. A comma between placeholders is a thousands separator; only commas at the end of the numeric code scale the value.

Display only. “4.2M” still holds 4,200,000 — great for readability, but tell readers the units so they don’t misread.

One scale per format. A single code can’t auto-pick K vs M; use a formula or conditional sections for that.

Practice workbook

📊
Download the free Display Numbers in K / Millions practice workbook
Cells formatted in K and M (value preserved), the auto-label formula variant, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I show large numbers as millions in Excel?
Use a custom format with two trailing commas: #,##0.0,, "M". Each trailing comma divides the displayed value by 1,000; two commas give millions.
How do I show thousands (K)?
Use one trailing comma: #,##0, "K".
Can one format auto-switch between K and M?
No — a single format code uses a fixed scale. Use a formula like =TEXT(A1/1e6,"0.0")&"M" or conditional sections to switch by size.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Custom number format · Conditional number format · KPI card

Function references: TEXT