Yes, you can create an Excel chart with data in the millions. The most reliable method is to keep the raw numbers in the cells but apply a custom number format to the axis labels. This tells Excel to display the numbers as millions without changing the underlying data or requiring you to type a new value into every single cell.

What You'll Need

  • A computer with Microsoft Excel installed (2010, 2013, 2016, 2019, or Office 365 are the most common versions; the steps are nearly identical across these).
  • A dataset containing numerical values in the millions. For example, a list of sales figures like 1,500,000 or 8,200,000.
  • An internet connection is not required once the file is open.

Step-by-Step

  1. Prepare your data. Ensure your data is organized in a table format. For a simple bar or line chart, you need two columns: one for labels (e.g., Months or Product Names) and one for the values (e.g., Revenue). The values column should contain numbers in the millions; if you have the number as text (e.g., "1.5M" typed in the cell), Excel will not recognize it as a numerical value for the chart axis. You must use standard numbers (e.g., 1500000) to allow the chart to calculate the scale correctly.
  2. Select your data. Click and drag to highlight the entire range of data you want to chart. This includes both the category labels (the text) and the numerical values (the numbers in millions). If you have headers, ensure they are included in the selection.
  3. Insert the chart. With your data selected, go to the "Insert" tab at the top of the Excel ribbon. In the "Charts" section, choose the type of chart you prefer. A standard column chart or a line chart are excellent choices for showing trends over time or comparing values. Click the icon for your preferred chart type.
  4. Locate the axis labels. Once the chart appears on your sheet, look at the vertical axis (the left side of the chart) where the numbers are currently displayed. These are the raw, full numbers like 0, 2000000, 4000000, etc. This is the axis you will modify.
  5. Open the Format Axis pane. Click directly on one of the numbers on the axis to select it. A new tab labeled "Format" should appear in the ribbon at the top of the screen. Click the "Format" tab. On the far right side of the ribbon, you will see a button labeled "Format Selection" or simply a small icon representing a chart element. Click this button. A pane (a side panel) will open on the right side of the Excel window. This is the Format Axis pane.
  6. Access the Number settings. Inside the Format Axis pane, look for a section titled "Number." It may be at the top or bottom of the pane. Click on the word "Number" to expand that section. You will see a dropdown menu labeled "Category." This is where you will define how the numbers are displayed.
  7. Choose the Custom format. In the "Category" dropdown menu, scroll down until you see "Custom." Click on it. A text box labeled "Type" will appear below the dropdown menu. This box is for entering a custom formatting code.
  8. Enter the "Millions" code. In the "Type" text box, type the following text exactly: #,##0,, "M"; (The code is the same for positive and negative numbers, but the semicolon separates the formats for positive and negative values. For this basic chart, the same format works for all). Press the OK button at the bottom of the pane to apply the change.
  9. Verify the result. The numbers on your chart's axis will instantly change from 2,000,000 to 2.0M. The bars or lines in your chart will remain exactly the same height or position, as the underlying data has not changed, only the label.
  10. Optional: Format the chart title. If the chart title is still generic (like "Chart 1"), click on it to edit it. Change it to something descriptive, such as "Annual Revenue (in Millions)." This makes the chart much easier for your audience to understand.

Common Mistakes

One of the most common errors is attempting to change the data itself. Users often try to type "2" into a cell that originally held "2,000,000" and assume the chart will update. This is incorrect because the chart calculates the scale based on the numeric value of 2,000,000. If you change it to 2, the bar representing that value will shrink dramatically, and the scale of the entire chart will collapse, making the other data points look like a flat line. The custom format method is the only way to present the data in millions without distorting the visual representation.

Another mistake is forgetting to select the axis before trying to format it. If you click on the chart itself, Excel will open the chart options in the ribbon, not the axis options. You must click specifically on one of the numbers on the vertical axis to ensure the correct settings pane opens. Similarly, users sometimes try to apply the number format to the data series itself, which changes the fill color or border of the bars or lines, not the labels on the axis. The axis must be selected for the number formatting to work as intended.

Tips

For charts showing very large numbers, such as billions or trillions, you can modify the custom format code slightly to match. For billions, use #,##0,, "B"; and for trillions, use #,##0,,, "T";. This allows you to consistently use the same chart type and style for all your financial data, regardless of the magnitude of the values.

When presenting your chart to an audience, it is helpful to include a legend or data labels on the chart elements themselves. While the axis clearly shows the units as millions, adding a label like "$2.0M" directly to the top of a bar provides immediate context. To add data labels, select the chart, go to the "Chart Elements" button (the green plus sign in the top right corner of the chart), and check the box for "Data Labels." You can then format these labels to show percentage changes or other insights if needed.

Troubleshooting

If the numbers on your axis are not changing to the "M" format, the most likely cause is that the axis was not selected correctly. Ensure that you clicked directly on one of the numbers on the axis and not on the chart title or a bar itself. If the pane opened but the "Number" category is not available, try selecting a different number on the axis and clicking the "Reset to Default” button in the pane before starting over.

If the axis does not update at all after applying the custom format, you may need to refresh the chart. Right-click on the chart and select "Refresh" from the context menu. This forces Excel to re-render the chart with the new axis settings. In some cases, simply closing the Format Axis pane and reopening it will trigger the update.

If your chart still shows the full numbers like 2,000,000, double-check the custom code you typed. A common typo is forgetting the quotation marks around the "M" or including a space before it. The code must be exactly #,##0,, "M"; for the text to appear correctly. Ensure you are editing the "Type" box in the "Custom" category, not the "Format Code" box which is used for currency or date formatting.

Frequently Asked Questions

How do I change the axis to show "k" for thousands instead of millions?

To display thousands, use the custom number format code #,##0.0,"k";. This will format 1,000 as 1.0k and 5,000,000 as 5,000k. The code tells Excel to group numbers in sets of three digits, add a decimal point, and append the letter "k".

Does this custom format work in all versions of Excel?

Yes, the custom number formatting feature is a standard part of Excel across all modern versions, including Excel for Mac and Excel Online. The steps for accessing the Format Axis pane and entering the custom code are consistent in these versions.

Can I use this method for the horizontal axis (X-axis) as well?

Yes, you can apply the same custom number format to the horizontal axis. This is particularly useful if your labels are long numbers, such as product SKU codes or employee IDs, and you want to display them in a more compact form. The process is identical: select the axis, open the Format pane, and apply the #,##0,, "M"; code.

What if I have a mixed dataset with values in millions and values in thousands?

It is generally not recommended to mix units in a single chart because the scale will be dominated by the smaller unit (thousands) and the millions will appear as a flat line. For the best visualization, keep your units consistent. You can create two separate charts, one for the lower range and one for the higher range, or use a logarithmic scale, though the custom format method is much simpler and more universally understood.

Why does my chart look different on a different computer?

Excel charts are highly customizable. If the formatting looks different on another computer, it is likely due to different default chart styles or different settings in the Excel Options. The underlying data and the axis labels (the numbers) will remain the same, but the colors, fonts, and layout may differ. The most important aspect—the representation of the numbers in millions—will be preserved.

Is there a way to do this without opening the Format pane?

There is a very quick way to apply a standard number format. Right-click on the axis, select "Format Axis..." from the context menu, and then choose "Number" from the options in the pane. While this offers standard formats like Currency or Accounting, it does not offer the custom "M" format. For that, you must manually type the code into the "Type" box.