Millions in Excel: Format Numbers as Millions
In this article
To show millions in Excel, divide the value by 1,000,000 in a helper column or custom-format the cell with 0.0,,"M" so the underlying number stays intact. Displaying millions is one of those tasks that looks trivial until the numbers stop lining up, charts show the wrong labels, or a colleague's formula reads a rounded label instead of the real value. This guide covers both routes, plus the mistakes that quietly break spreadsheets.
What You'll Need
- Any current version of Excel on Windows, Mac, or the web (Excel for the web supports custom number formats but not macros).
- A column of numbers large enough to be worth abbreviating, typically six digits or more.
- A clear decision on whether you need the true value preserved (formatting) or a smaller number to calculate with (division).
- Back up or copy the sheet before you overwrite the source column, in case you need to reverse the change.
Step-by-Step
Method 1: Custom number format (keeps the real value)
- Select the cells, column, or whole table you want to display in millions.
- Press Ctrl+1 (Windows) or Cmd+1 (Mac) to open Format Cells. You can also right-click and choose Format Cells.
- On the Number tab, select Custom at the bottom of the Category list.
- In the Type box, clear the existing entry and type
#,##0.0,,"M". Each comma after the number divides the displayed value by a thousand, so two commas divide by a million. The"M"adds the letter as text, and the zero after the decimal controls how many decimals you see. - Click OK. The cell now shows 12.5M while the formula bar still reads 12500000.
- For whole millions with no decimals, use
#,##0,,"M". For a lowercase or different suffix, swap the quoted text, for example#,##0.00,," million". - Copy the format to other cells with the Format Painter, or paste special using Formats only.
Menu labels and the exact wording of the Type box can differ slightly by version and by locale, especially where the decimal and thousands separators are swapped. If your system uses commas as decimal separators, Excel may expect a different character in the format string.
Method 2: Divide by a million (when you need a smaller number)
- Click an empty cell beside your data and type
=A2/1000000, replacing A2 with your first value. - Press Enter, then drag the fill handle down to apply the formula to the rest of the column.
- Format the results with
#,##0.0and add an "M" suffix in the column header instead of every cell, which reads cleaner in tables. - If you want to replace the original values permanently, copy the helper column, then use Paste Special > Values over the source, and delete the helper. Do this only on a copy, because the original magnitude is gone after this step.
Method 3: Show millions on charts and axis labels
- Right-click the value axis and choose Format Axis.
- Expand Number and open the Format Code box.
- Type
#,##0,,"M"and click Add. The chart labels update without touching the source data. - For data labels, right-click a label and use Format Data Labels > Number with the same custom code.
Common Mistakes
- Overwriting the source data. Dividing in place destroys the true value and every downstream total. Format instead unless you genuinely need a scaled number.
- Using the wrong number of commas. One comma is thousands, two is millions, three is billions. A single missing comma makes every figure a thousand times too large.
- Putting the M inside the value. Typing 12.5M into a cell turns it into text, which breaks formulas and sorting. Keep the letter in the format, not the number.
- Formatting the whole sheet by accident. Select only the target range before applying a custom format, or you will quietly change dates and IDs elsewhere.
- Rounding twice. If you divide and then format to zero decimals, totals can look off by a few million. Keep two decimals internally and round only for presentation.
- Mixing scaled and unscaled columns. If one column is in millions and another in full units, any formula combining them produces nonsense. Label units in the header explicitly.
Tips
- Add the unit to the column header, such as "Revenue (in millions)", so readers never guess the scale.
- Use conditional formatting or cell comments to flag the one column that is scaled differently from the rest.
- Test a custom format on a small sample range, including a negative number and a zero, before applying it across a report. Negative values sometimes need a separate section in the format code.
- Keep a hidden or clearly marked note stating the exact format string used, so a future editor can undo it.
- If you share the file, check that other viewers see the same format. Custom formats generally survive, but values pasted as text will not.
- For dashboards, format the axis and the data labels consistently; mismatched scales are the single most common cause of misleading charts.
Troubleshooting
The cell still shows the full number. The format was likely applied to the wrong range, or the cell contains text stored as text. Click the cell and check the formula bar; if the value is left-aligned and has no number formatting options, convert it back to a number using Text to Columns or by multiplying by 1.
The format shows a strange character instead of M. The quoted suffix was entered outside the format code, or the locale uses different separators. Reopen Format Cells and confirm the entire string, quotes included, sits in the Type box.
Totals no longer match. You probably divided the source cells. Compare the formula bar against a backup; if the original values are gone, restore from version history or a saved copy rather than trying to reconstruct them.
Charts show 0 or 1000000 on the axis. The custom axis code was added incorrectly. Remove it and re-add using Format Axis > Number > Format Code, ensuring two commas.
If that did not work, copy the data into a clean new sheet, apply the custom format there, and compare. A fresh sheet rules out inherited formatting from a template or a pasted table style.
Frequently Asked Questions
Does the custom format change the actual value?
No. It only changes what is displayed. Formulas, totals, and exports still use the full number, which is why formatting is the safer choice for reports.
How do I show billions with the same method?
Use three commas instead of two, for example #,##0.0,,,"B". Each comma scales by another factor of a thousand.
Can I apply this to an Excel table or PivotTable?
Yes, custom formats apply to table columns and PivotTable value fields. In a PivotTable, use Value Field Settings > Number Format so the format survives refreshes.
Why does my negative number look odd?
A single-section format code applies the same pattern to negatives. Use a two-section code such as #,##0.0,,"M";-#,##0.0,,"M" if you want a clear minus sign.
Does this work in Excel for the web and Google Sheets?
Excel for the web supports custom number formats in most cases. Google Sheets uses a different format syntax and does not treat trailing commas the same way, so use 0.0,,"M" there with care or divide by a million instead.