To stop zeros from appearing in an Excel chart, choose the axis you want to control and remove the zero values from what the chart reads: either delete them, replace them with the chart-friendly empty value, or, for line and scatter charts, tell Excel to show blank cells as gaps rather than zero-valued points. The correct method depends on whether you want zeros suppressed entirely, shown as gaps, or left off the axis scale altogether. All three approaches below are built-in Excel behaviour, so no add-ins are needed.
What You'll Need
- A version of Excel that supports charts (desktop Excel for Windows or macOS, or Excel on the web for the simpler methods).
- Your source data in a table or range, so it is easy to change values without rebuilding the chart.
- The name of the chart type you are using, because line charts, column charts, scatter charts and pie charts each handle zeros differently.
A quick word on menu labels: Excel's ribbon has varied slightly between versions, and Excel on the web shows fewer options than desktop. Where a label is given below, look for the closest equivalent in your version.
Step-by-Step
- Decide what a zero means in your data. Is a zero a true measurement (someone scored zero) or a placeholder for "no data yet"? If zeros are genuine values, hiding them changes the meaning of the chart and you should say so in a note. If they are placeholders, the next steps are safe.
- Clear the zeros instead of typing 0. Select the cells holding zeros, press Delete, and leave them truly empty. A blank cell is ignored by most chart types, whereas the number 0 is plotted. Do not use a space character, because Excel may treat it as text and distort your axis categories.
- For line charts and scatter charts, switch blanks to gaps. Right-click the chart and choose Select Data, then click Hidden and Empty Cells. In the dialog that opens, choose Gaps for empty cells, and make sure the option to show empty cells as zero is unticked. Click OK twice. Your line will now break across missing points instead of dropping to the axis.
- For column, bar and area charts, do the same cell-clearing step. These chart types already draw nothing for a truly empty cell, so deleting the 0 is usually enough. If a category label disappears from the axis after clearing, right-click the axis and open Format Axis, then set the axis to display categories in the data order rather than only categories with values.
- Use a custom number format to blank the zero. If you cannot delete the underlying zeros because formulas produce them, select the cells, press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, go to the Number tab and choose Custom. Enter a format such as
0;-0;;@and click OK. The third section, between the second and third semicolons, controls zeros; leaving it empty displays zero cells as blank while the value is still there. This affects the display of cells, so check whether your chart's data labels pick up the blanks, since label behaviour here varies by chart type. - Adjust the vertical axis minimum if the zero is the axis itself. Sometimes the unwanted zero is the axis origin, not a data point. Right-click the value axis, choose Format Axis, and set Minimum to a sensible number under your lowest real value. Do this only when all your values are well above zero, because cutting the bottom off a column chart exaggerates differences.
- Remove zeros from pie and doughnut charts by filtering. These charts plot every category, including empty-looking ones. Add an AutoFilter to your table (Data > Filter), untick the zero rows for the chart's source range, or use Select Data and remove the individual series points manually in the Select Data Source dialog.
- Check your data labels. After suppressing zeros, click the chart, open the Chart Elements button (the plus sign beside the chart on desktop) and review Data Labels. If labels still appear over blank points, open Format Data Labels and untick Show value for empty series points, or simply switch labels off and back on to refresh them.
- Refresh if you use a PivotChart. A PivotChart built from a PivotTable needs the zero rows removed in the PivotTable itself, by filtering the row or column field. Hiding rows in the worksheet will not change a PivotChart.
Common Mistakes
- Typing a space or apostrophe into empty cells. Both make the cell text, not empty, and can shift the axis or create stray categories.
- Assuming Format Cells changes chart data. A custom format changes what you see in cells; the underlying value is still zero and some chart labels will still read it.
- Cutting the axis minimum on a column chart. Starting the axis at a high number makes small bars look dramatic. Reserve this for line charts where the low values are genuinely irrelevant.
- Deleting rows instead of clearing cells. Deleting entire rows changes your data layout and can break formulas or the chart's source range.
- Expecting hidden-and-empty-cell settings to fix bar charts. That gap setting belongs to line and scatter charts; empty cells in column charts already draw nothing.
Tips
- Keep the raw data on one sheet and the chart on another, so clearing zeros and formatting cells never disturbs your labels.
- Use
NA()in formulas that should produce gaps. Excel plots an #N/A error as an empty point in line and scatter charts rather than a zero. - Label the chart or add a footnote such as "blank means no data recorded" so readers do not assume the missing value is a real zero.
- Save a copy before making structural changes to a PivotTable or its source data.
Troubleshooting
If zeros still appear after clearing cells, confirm you are editing the cells the chart actually reads. Click the chart and look at the highlighted range in the worksheet; the coloured outlines show which cells are linked.
If the line chart still drops to the axis, the Hidden and Empty Cells setting may not have applied. Reopen Select Data, check that Gaps is selected, and confirm your empty cells contain nothing at all, including spaces or formulas returning an empty string.
If a formula returns a blank string and the chart still plots zero, that is because the cell is not empty. Change the formula to return NA(), or clear the result with a copy-and-paste-as-values and then delete the zero.
If the PivotChart ignores your changes, filter the PivotTable field rather than the worksheet, then refresh the chart. If the chart shows an error after you remove a series point, undo the removal (Ctrl+Z) and remove the underlying data instead.
If the whole chart looks empty, your axis minimum may now be above every remaining value. Right-click the axis, reset the minimum to Automatic, and set the maximum the same way.
Frequently Asked Questions
Why does my line chart show a zero instead of a gap?
Excel treats true zeros as data points. Clear the cell, or make the formula return NA(), then confirm the Hidden and Empty Cells setting is set to Gaps.
Does hiding rows in the worksheet hide them in the chart?
No. Hidden rows are controlled by a separate setting in the Select Data dialog. Use the filter or the chart's own data range instead.
Can I hide zeros in a single series only?
Yes. Select just that series, open Select Data, and remove or repair only the points you want gone, leaving the rest of the chart unchanged.
Will these methods work in Excel on the web?
Clearing cells and filtering work, but the Hidden and Empty Cells dialog is limited in the browser version. Open the file in desktop Excel for the full set of options.
Is it safe to set the axis minimum above zero?
For line charts showing change over time it can be useful. For bar and column charts it can mislead readers, because lengths no longer show true proportions.