Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Chart Format Number in Millions: Easy Steps

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To display chart numbers in millions in Excel, you format the value axis using a custom number format code that divides by 1,000,000 and appends an “M” suffix. The quickest working method is to right-click the vertical axis, choose Format Axis, open the Number section, select Custom, and enter 0.0,,"M" in the Format Code box. This changes only how the numbers look, not the underlying values, so your data stays accurate while the chart becomes far easier to read.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel for the web. The steps below use the desktop right-click menu; Excel for the web has a similar Format Axis pane but some labels may differ.
  • A chart already created from numeric data, ideally with values in the thousands or millions.
  • Basic familiarity with right-clicking chart elements. No add-ins or macros are required.

Step-by-Step

  1. Select the chart. Click once on the chart so Excel shows the Chart Design and Format tabs on the ribbon. If you do not see those tabs, click directly on the chart border or plot area.
  2. Right-click the value axis. The value axis is the vertical axis on most column and line charts. Right-click directly on its numbers or labels and choose Format Axis from the context menu. If you right-click the wrong element, the menu will show different options, so aim for the axis labels themselves.
  3. Open the Axis Options section. In the Format Axis pane that appears on the right, make sure Axis Options is selected (the icon that looks like a small bar chart). Labels can differ slightly by Excel version, device, and region, but the Number subsection is present in all current desktop versions.
  4. Expand the Number subsection. Scroll down within Axis Options until you see Number. Click the small arrow to expand it. You will see a Category dropdown and a Format Code box.
  5. Choose Custom. From the Category dropdown, select Custom. Do not pick “Number” and then try to add commas; the built-in Number category does not divide values, it only adds separators.
  6. Enter the millions format code. In the Format Code box, type 0.0,,"M" and press Enter or click Add. Each comma after the zero divides the displayed value by 1,000, so two commas divide by 1,000,000. The quoted M adds the suffix. For whole millions without a decimal, use 0,,"M"; for one decimal place, use 0.0,,"M".
  7. Check the preview. The Sample area in the pane should show something like 1.2M for a value of 1,200,000. If it shows 1200000M, you have used one comma instead of two; correct the code.
  8. Close the pane. Click the X in the top-right corner of the Format Axis pane. The axis labels update immediately. Your worksheet cells are unchanged; only the chart display is affected.
  9. Repeat for data labels if needed. If you show data labels on the chart, right-click a label, choose Format Data Labels, expand Number, select Custom, and enter the same code. This keeps the labels consistent with the axis.

Common Mistakes

  • Using one comma instead of two. One comma divides by a thousand and shows thousands, not millions. Two commas are required for millions.
  • Forgetting the quotes around M. Without quotes, Excel may interpret the letter as a formatting instruction or ignore it. Always write "M".
  • Changing the source cells instead of the chart. Dividing your data by 1,000,000 in the worksheet alters the real values and breaks totals and formulas. Format the axis, not the cells.
  • Applying the format to the wrong axis. On a bar chart, the value axis is horizontal, not vertical. Right-click the axis that carries the numbers.
  • Expecting the format to change the chart type or scale. The custom format only changes display text. The axis minimum and maximum remain based on the original values.

Tips

  • Use 0.0,,"M" for one decimal place, 0.00,,"M" for two, and 0,,"M" for whole millions. Match the precision to your data so the chart does not imply more accuracy than you have.
  • For thousands, use a single comma: 0,"K". For billions, use three commas: 0.0,,"B" actually gives billions only if you use three commas; two commas give millions. Count carefully.
  • If you want a space before the suffix, include it inside the quotes: 0.0,," M".
  • To keep the format consistent across future charts, apply it to the axis and then save the chart as a template, or copy the formatted chart and paste it as a template. This is optional and not required for a one-off chart.
  • Custom number formats are stored per chart, not globally. A new chart will revert to the default General format until you apply the code again.

Troubleshooting

  • The Format Axis pane does not appear. Make sure you right-clicked the axis labels, not the plot area or a data point. On some versions, double-clicking the axis also opens the pane.
  • The code is rejected or shows an error. Check for straight quotes, not curly quotes. Excel requires ASCII double quotes around text. Also confirm you are in the Custom category, not a built-in category.
  • The axis still shows full numbers. The format may have been applied to the wrong axis or to the chart area. Reopen Format Axis and verify the code is in the Number section of Axis Options, not in the chart title or legend.
  • Data labels do not match the axis. Data labels have their own number format. Format them separately using the same code.
  • The chart looks wrong after changing the format. Custom formats do not alter values, so if the chart shape changed, you likely edited the source data. Press Ctrl+Z (Windows) or Command+Z (Mac) to undo, then reapply the axis format.
  • Excel for the web behaves differently. The web version offers a Format Axis pane but may not show every option. If the Custom category is missing, open the file in the desktop app to apply the format, then save; the formatting carries over to the web view.

Frequently Asked Questions

Does formatting the axis change my actual data?

No. The custom number format changes only how numbers are displayed on the chart. The underlying cell values and any formulas remain exactly as they were.

Why do I need two commas for millions?

In Excel number formats, each comma after the numeric placeholder divides the displayed value by 1,000. Two commas divide by 1,000,000, which is why 0.0,,"M" shows 1,200,000 as 1.2M.

Can I use this format on a bar chart?

Yes. On a bar chart the value axis is horizontal, so right-click the horizontal axis labels instead of the vertical ones. The same Format Axis pane and code apply.

Will the format carry over if I copy the chart?

Yes, copying and pasting the chart within the same workbook keeps the axis format. Creating a brand-new chart from the same data does not; you must apply the code again.

Can I show millions with a dollar sign?

Yes. Use a code such as $0.0,,"M". The dollar sign is a literal character and appears before the number. For other currencies, replace the symbol accordingly.

Why does my chart show 0.0M for small values?

Values below 500,000 round to 0.0M at one decimal place. Use more decimals, such as 0.00,,"M", or switch to a thousands format for small-value charts.