You can show millions as M in Excel by applying a custom number format that divides the displayed value by one million and appends an M suffix. The quickest route is to select your cells, press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, choose Custom, and type 0.0,,"M" into the Type box. Each comma after the zero divides the display by a thousand, so two commas divide by a million. Your underlying values never change, which means totals, formulas and charts built on those cells still behave correctly. Nothing is installed or enabled first; any version of Excel on Windows, Mac, or Excel for the web supports custom formats.

What You'll Need

  • Excel on Windows, Mac, or Excel for the web. Excel for iPhone and Android has limited custom formatting, so the custom-format route is best done on desktop or in a browser.
  • A column of numbers in whole units (for example 2400000) or in thousands, depending on which format you pick below.
  • Basic familiarity with the Format Cells dialog, which is where all custom formats live.

The exact wording of menus can differ slightly by Excel version, device and region, so if a label looks a little different, look for the nearest equivalent.

Step-by-Step

  1. Select the cells you want to change. Click the first cell in your range and drag, or hold Shift and click the last cell. You can also select an entire column by clicking its letter, though be careful: any text in that column will keep its own format. You can select non-adjacent cells by holding Ctrl (Cmd on Mac) while clicking.
  2. Make sure the cells contain real numbers. Click one cell and check the formula bar. If it holds 2400000, you are fine. If it holds text like "2.4M" or a number stored as text, no number format will ever change how it looks, so fix that first by retyping the value or using the error-checking options Excel shows next to text-formatted numbers.
  3. Open Format Cells. Press Ctrl+1 on Windows or Cmd+1 on Mac. Alternatively, right-click the selection and choose Format Cells, or go to the Home tab, click the small dialog launcher in the bottom-right corner of the Number group. All three open the same dialog.
  4. Choose the Custom category. In the Number tab, scroll the Category list to the bottom and click Custom. The Type box appears on the right with a list of existing formats beneath it.
  5. Type the format code. Click the Type box, clear whatever is there, and enter exactly: 0.0,,"M". Here is what each part does: the digit placeholders decide how many decimal places appear, and each comma scales the displayed number down by a thousand, so two commas scale by a million. The quoted M is literal text added after the number. For whole millions with no decimals, use 0,,"M" instead. For two decimals, use 0.00,,"M".
  6. Check the preview. The Sample area below the Type box updates as you type. If you typed a format that Excel cannot read, you will typically get an error message and the dialog will refuse to close, which tells you a character is wrong, often an unquoted letter.
  7. Click OK to apply. The cells now show values such as 2.4M instead of 2400000. Click any of those cells and look at the formula bar: the original full number is still there, confirming that only the display changed.
  8. Copy the format to other cells if needed. Select a formatted cell, press Ctrl+C, select your target cells, then use Paste Special (Ctrl+Alt+V) and choose Formats. This avoids overwriting the values.
  9. Do a quick total check. Put a SUM formula under your column and glance at the result. Because the underlying values are intact, the total will be correct, and if you format the total cell with the same M format it will read consistently with the column above it.
  10. Save the file. Custom formats are stored in the workbook, so anyone opening the file sees the M display as long as they open it in a program that understands Excel custom formats.

Common Mistakes

  • Using one comma instead of two. A single comma divides by a thousand, so 2400000 becomes 2400.0M. That is the most frequent error and the result looks plausible enough to slip through.
  • Leaving the M unquoted. Excel treats certain letters as format codes. You must wrap literal text in double quotes, as in "M". An unquoted M can trigger an error or produce unexpected output.
  • Expecting the number to actually change. The format only changes what is displayed. If you copy those cells into a plain text email or another program that ignores Excel formats, you will get the raw number back.
  • Applying the format to a cell that is already text. If the value is stored as text, the custom format is ignored. Numbers imported from CSV files or exported from other systems are frequent culprits.
  • Formatting a chart axis by clicking the wrong element. Click the axis itself, not the plot area or the chart border, or the format dialog will offer chart options rather than number options.
  • Mixing units in one column. If some rows are in raw units and others already in thousands, the M display will be misleading for half the column. Standardise the data first.

Tips

  • To show thousands as K and millions as M dynamically, you can use a conditional custom format with sections separated by semicolons, so one format code handles both scales. This is more advanced but avoids two separate columns.
  • Use #,##0,,"M" if you want thousands separators in the millions display, which helps with numbers in the billions.
  • To add a space before the suffix, use 0.0,," M" with a space inside the quotes.
  • Save your favourite format as a cell style so you can reapply it with one click instead of retyping the code each time.
  • For chart axis labels, right-click the axis, choose Format Axis, and look for the Number section where the same custom format code can be entered.
  • Keep a separate raw-data column if your file is shared. Some recipients paste into systems that read the underlying number, not the display.

Troubleshooting

If nothing changes when you click OK, the cells are probably text, not numbers. Check the alignment: numbers normally align right and text aligns left unless you changed it. Select the range and use the Text to Columns feature or retype the values to convert them.

If Excel rejects your format code, the usual cause is a stray letter outside quotation marks, a missing quote, or a locale that uses a comma as the decimal separator. In such regions you may need to use the decimal and thousands characters your Excel expects, or build the format by editing an existing one rather than typing from scratch.

If the numbers display correctly but totals look wrong, confirm you have not accidentally formatted a value that was already divided down. Remember the display is cosmetic; the formula bar tells the truth.

If the suffix disappears after sharing, the recipient may be opening the file in a program that does not honour Excel custom formats, such as some online viewers or text exports. In that case, keep the real numbers and add a separate text column that concatenates a rounded value with an M using a formula.

If Ctrl+1 does nothing, another add-in may be capturing the shortcut. Use the right-click menu or the Number group dialog launcher instead.

Frequently Asked Questions

Does this change the actual values?

No. Only the display changes. Calculations, sums and charts continue to use the full underlying number.

What is the difference between one comma and two?

Each comma divides the displayed number by a thousand. One comma shows thousands, two commas show millions, and three would show billions.

Can I use a lowercase m instead?

Yes. Put "m" inside the quotes instead of "M". The text inside quotes is shown exactly as typed.

How do I show negative millions in parentheses?

Use a format with a negative section, such as 0.0,,"M";(0.0,,"M"), so losses appear as (1.5M) rather than -1.5M.

Can I do this in Google Sheets?

Google Sheets supports custom number formats through Format > Number > Custom number format, and the comma-based scaling works there too.

Why does my chart axis still show full numbers?

Chart axes have their own number format. Right-click the axis, open Format Axis, and enter the same custom code in its Number options.