To display numbers in Excel as millions (e.g., 5000000 as 5.00M), you simply reformat the cells using Excel’s built-in number formatting. This method works with both numeric ranges and custom formulas, and only requires a few clicks or keyboard shortcuts. Microsoft Excel does not natively display numbers “millions” directly, but this guide covers every version (Excel 2013+ on Windows/macOS) and mobile (Excel for iPhone/Android) with precise steps.

What You'll Need

  • An Excel file (.xlsx, .xls) with numeric data (e.g., dollar amounts, population counts, sales figures).
  • Access to Excel (desktop, tablet, or mobile app).
  • A goal: to format specific cells or an entire column as “millions” notation (e.g., 1,250,000 → 1.25M).
  • If working with large datasets, an understanding of how Excel handles thousands separators (optional but useful for readability).

Step-by-Step

  1. Choose your cells: Select the range of cells where you want the number to appear in millions format. For example, if you have data in columns A1–A100, click and drag the mouse to highlight them, or press Ctrl+Shift+Right Arrow to extend the selection downwards. On mobile, tap and hold the cell, then drag across all relevant rows/columns.
  2. Open the Format Cells dialog:
    1. On desktop/macOS: Go to Home tab > click the dropdown arrow next to Number under the Number group. A menu will appear with quick formats like Currency, Percentage, General, etc. Scroll to the bottom and select More Number Formats.
    2. In the dialog box, choose Custom from the Category list on the left. This opens the Format Cells window where you can define custom number formats.
    Mobile (Android/iOS):
    1. Tap the selected cells to open the context menu. Scroll down to Format Cells (may vary by version) and tap it.
    2. In the custom format dialog, select Custom under the Number category.
  3. Enter the custom format code: In the Type field of the Format Cells window, type the following: "#,##0.000;@"

    Explanation of the code:

    • #,##0.000 displays numbers in scientific notation with three decimal places (e.g., 1,234,567.123 → 1.235M), but Excel will not automatically append the “M.” You’ll need to manually add it.
    • For true millions notation (e.g., 1,234,567 → 1.23M), use: "#,##0.00";@" Replace the trailing semicolon with a comma (,) to separate thousands groups. Note: This format applies a comma as a thousands separator, not a decimal (e.g., 1,234.567 becomes 1,234M). If you want proper currency formatting, use the #,##0.00_);(@)_ pattern instead (see Microsoft’s official guide for currency-specific formats).

  4. Apply the format and manually append “M”:
    1. Click OK to apply the custom format. Excel will now display your numbers in scientific notation or with thousands separators (but no “M”).
    2. Use Excel’s Find and Replace feature to add the letter M:
      1. Press Ctrl+H. In the Find what field, type # (the # symbol). In the Replace with field, type the space character followed by M (i.e., M).
      2. Set the search options to Match case and Wrap around to cover all cells.
      3. Click Replace All to insert the M after every number.
    Alternative for mobile: If Find/Replace isn’t available, copy the formatted range, paste it into a new cell, and manually edit the M’s into the copied text.
  5. Verify the result: Check the formatted range to confirm numbers appear as 1.23M, 5.45M, etc. For example:
    1. Original: 1,234,567.123 → After formatting + Find/Replace: 1.234M
    2. Original: 123 → After formatting + Find/Replace: 1.23M
    3. Original: 678 → After formatting + Find/Replace: 0.678M

    If numbers are too large/small relative to the 3-decimal display (e.g., 100 → 0.100M), adjust the #,##0.00 pattern to #.000 (scientific notation).

Common Mistakes

  • Using the wrong code: Forgetting to add the trailing semicolon (,) for thousands separators causes output like 1.234M (with no separator) instead of 1.234M. Always copy the exact pattern above.
  • Not applying to the whole range: Selecting only one cell and applying the format will work for that cell but not the entire column. Always select your range first.
  • Overlooking decimal precision: If your data has more than three decimal places (e.g., 5,000,000.123), Excel may round incorrectly. Use #,##0.000 to retain decimals.
  • Manual editing errors: When manually replacing # with a space + M, ensure you’re editing the correct cells. If you accidentally replace spaces with M’s elsewhere in the document, use Edit > Undo to revert.
  • Mobile limitations: Some mobile versions of Excel do not support the full Format Cells dialog. If you’re using the iOS Excel app, you may need to use the Format as Currency option with a custom conversion (see Troubleshooting).

Tips

  • Reuse the same format: Save the custom format as a Quick Style for repeated use:
    1. Go to the Home tab > click Number > More Number Formats > Custom > enter your code.
    2. Click Save As > name it (e.g., “Millions Format”) > click OK.
    3. Apply the Quick Style to any range you want formatted as millions.
  • Use conditional formatting for dynamic ranges: If your data changes frequently, apply the format to a helper column and use conditional formatting to highlight ranges (e.g., Format Only Cells With Values Greater Than 1M).
  • Combine with percentage formatting: For ratios, divide by 1,000,000 and format as a percentage (e.g., 500,000 sales → 0.500% of some base).
  • Check for hidden characters: If numbers appear garbled after formatting, check for hidden formatting (Ctrl+H > Show Hidden Characters). These may interfere with the Find/Replace step.
  • Excel Online users: The online version lacks the full Format Cells dialog. Use the #,##0.000 pattern directly in the cell and manually insert M’s via Edit > Replace.

Troubleshooting

If the formatting doesn’t appear as expected, try these steps in order:

  1. Restart Excel: Close and reopen the application. Sometimes temporary glitches prevent custom formats from applying correctly.
  2. Check for conflicting formatting:
    1. Right-click the cell > select Format Cells.
    2. Verify the active format is Custom with your code. If another format (e.g., Currency) is active, switch it first.
  3. Use scientific notation as a fallback: If Find/Replace fails, type #.000 in the Format Cells window to show numbers as 1.234E+06 (scientific) or 1.234M (if you manually append M).
  4. Mobile Excel issues:
    1. On iOS: Open the cell > tap the Format icon (paintbrush) > select Number > Custom > enter ,##0.00;@ > tap Done. Manually replace # with M.
    2. On Android: Use the Format as Currency approach with a custom rule (e.g., “1,000,000 = 1M” in a helper cell).
  5. Data type mismatch: If cells contain text (e.g., “$1,000,000”), convert them to numbers first:
    1. Select the range > right-click > Format Cells > Number > Decimal Number (or General for whole numbers).
  6. Last resort: Use a helper column:
    1. Add a new column and copy your data over.
    2. Format the helper column as ,##0.00;@.
    3. Use Power Query or a VBA macro to replace numbers with their millions-equivalent (e.g., =Text(5000000, “#,##0M”) in Excel 2016+).

    Note: Helper columns are temporary solutions. For dynamic data, use conditional formatting or a formula.

Frequently Asked Questions

How do I format a single cell in millions instead of the whole column?

Apply the custom format to the single cell first, then manually insert the M via Find/Replace. If the cell is part of a series, select it as part of the range before applying the format.

Can I make Excel automatically display numbers as “M” without manual replacement?

No. Excel does not natively support millions notation in custom formats. The workaround (Find/Replace) is the only reliable method. If you need dynamic formatting, consider adding a helper column with a formula like =Text(A1, “#,##0M”) (requires Excel 2016+).

My numbers are too large or small—how do I adjust the decimal places?

Use these patterns:
  1. For millions notation with 3 decimal places (e.g., 1.234M): #,##0.000;@
  2. For millions notation with 2 decimal places (e.g., 1.23M): #,##0.00;@
  3. For scientific notation (e.g., 1.234E+06): #.000
  4. For currency-style millions (e.g., $1.23M): #,##0.00_);($)0.00_

Why does my Excel app on mobile not support the Find/Replace step?

Mobile versions of Excel often lack advanced editing features. Use these alternatives:
  1. Copy the formatted range, paste it into a new cell, and manually edit the M’s.
  2. Use a third-party app (e.g., Excel for Mac/iOS) that supports full Find/Replace.
  3. Convert numbers to text first, then add the M (e.g., =Text(A1, “#,##0”) + “M”).

How do I format numbers in Excel Online?

Excel Online lacks the Format Cells dialog. Instead:
  1. Format the cell as ,##0.00 (custom format).
  2. Manually replace # with a space + M using Edit > Replace.
  3. Use a helper column with a formula like =Text(A1, “#,##0M”).

Will formatting as “millions” affect calculations?

No. The formatting only changes how numbers are displayed—mathematical operations (addition, multiplication) will still use the original numeric values. For example, adding formatted 1.23M and 2.45M will result in 3.68M (which is correct as 3,680,000), but the sum will still be 3,680,000 in raw numbers.