Excel shows a 0 whenever a formula or a linked cell resolves to zero, which can clutter a table full of placeholder zeros or make a calculated cell look like it has a real value. To hide zeros you have three reliable options: apply a custom number format that omits zero, wrap the formula in an IF statement so it returns an empty string instead, or switch off zero display for the whole sheet in Advanced options. The right choice depends on whether the zero is a real answer you want preserved or just noise you want gone from the view.

What You'll Need

  • Any current version of Excel for Windows, Mac, or the web (options are grouped in File > Options on desktop and in the gear icon on the web; labels can differ slightly by version, device, or region).
  • A worksheet containing the zeros you want to hide, and a clear idea of whether other people or formulas rely on those values.
  • Optional: access to Excel's Format Cells dialog, which you open with Ctrl+1 on Windows or Cmd+1 on Mac.

Step-by-Step

Method 1: Hide zeros with a custom number format (keeps the value)

This is the cleanest option when the zero is a legitimate calculation you want to keep but not see.

  1. Select the cells, columns, or rows that contain the zeros.
  2. Press Ctrl+1 (Windows) or Cmd+1 (Mac) to open Format Cells, or right-click and choose Format Cells.
  3. On the Number tab, choose Custom at the bottom of the Category list.
  4. In the Type box, enter 0;-0;;@ and click OK. This defines four sections separated by semicolons: positive, negative, zero, and text. The empty third section means zeros show as nothing.
  5. Check a few cells to confirm the zeros are invisible while non-zero numbers still display normally. Click one of the hidden cells and look at the formula bar: the underlying 0 is still there, which is exactly what you want for downstream formulas and charts.

Method 2: Return a blank with an IF formula

Use this when you want the result cell to be genuinely empty rather than just formatted away.

  1. Click the cell holding the formula that returns zero, for example =A2-B2.
  2. Wrap it: =IF(A2-B2=0,"",A2-B2). The double quotes with nothing between them produce an empty text string.
  3. Press Enter and fill the formula down to the rest of the column.
  4. Be aware of the side effect: the cell now contains text, so functions like SUM, AVERAGE, COUNT, and MIN ignore it, which is usually fine but can change totals in ways you did not intend. If those downstream formulas matter, use Method 1 instead.
  5. If you are dividing and want to avoid both errors and zeros, combine the ideas: =IFERROR(IF(A2/B2=0,"",A2/B2),"").

Method 3: Turn off zero display for the whole sheet

  1. Open File > Options (on Mac, Excel > Preferences).
  2. Go to the Advanced section.
  3. Scroll to the options for this worksheet, which is usually near the section headed "Display options for this worksheet."
  4. Clear the checkbox labelled "Show a zero in cells that have zero value."
  5. Click OK. Every zero in that sheet disappears from view. Note that this setting is per worksheet, not per workbook, so repeat it on other sheets if needed.

Hiding zeros in charts

Charts plot the underlying values, so formatting cells does not remove zeros from a chart. To hide them, filter them out at the source: use an AutoFilter on the data and untick 0, or build the chart from a helper range that uses IF formulas returning #N/A instead of blank. Excel skips #N/A points in a line chart rather than dropping the line to zero. For a chart that already exists, select the chart, open Chart Design > Select Data, and point the series at the filtered or helper range.

Common Mistakes

  • Deleting the contents of cells to remove zeros. This destroys formulas and breaks any dependent calculations. Format or wrap instead.
  • Assuming the custom format changed the value. It only changes the display. If someone copies the cell and pastes values elsewhere, the zero travels with it.
  • Typing the wrong number-format code. Codes like 0;-0; with only three sections can behave unexpectedly. Use all four sections for predictable results.
  • Forgetting the sheet-level setting is per worksheet. Hiding zeros on one tab does not hide them on the next.
  • Using IF blanks in cells that feed a chart or a SUM. Text blanks are ignored by most math functions and can silently drop points from charts.

Tips

  • Keep a copy of the original formula in a comment or a hidden column before you wrap it, so you can revert easily.
  • Use a custom format with a placeholder text such as 0;-0;"—";@ if you would rather see a dash than a blank.
  • Apply the custom format to entire columns rather than individual cells so new rows inherit it.
  • Conditional formatting with a rule that turns zero-value text white is a workaround, but it hides the number from anyone who changes the font colour or prints in black and white. Prefer number formats.
  • If you want zeros hidden only in a summary row, apply the format to that row alone and leave detail rows intact.

Troubleshooting

Zeros still appear after a custom format. Check that the cells are actually numbers and not text. Text zeros need a leading apostrophe removed or a Number Format applied after converting with Data > Text to Columns. Also confirm conditional formatting is not overriding the number format.

The whole column vanished. A custom format with a single empty section hides every value. Reopen Format Cells and re-enter the full four-section code.

Formulas return #VALUE! after wrapping. You likely missed a closing parenthesis or used straight quotes where curly quotes were typed. Retype the quotes in the formula bar rather than pasting from a word processor.

The sheet-level option is greyed out. The workbook may be protected or shared. Unprotect the sheet via Review > Unprotect Sheet if you have the password, or ask the owner.

Totals changed unexpectedly. If you used IF blanks, switch back to number formatting so the zeros remain available to SUM and AVERAGE.

Frequently Asked Questions

Does hiding zeros delete the data?

No. A custom number format or the sheet-level display option only changes what you see. The value stays in the cell and continues to work in formulas, charts, and links.

How do I hide zeros only in specific cells?

Select just those cells and apply the custom format 0;-0;;@. Everything else on the sheet keeps showing zeros normally.

Why does my chart still drop to zero?

Charts read the stored value, not the formatted display. Filter out zero rows or use a helper range that returns #N/A for zero results so the chart skips those points.

Can I hide zeros in a PivotTable?

Yes, in PivotTable Options on the Layout & Format tab there is a setting to show or hide zero values for errors and empty cells. Labels vary by version, so look for the display options for the PivotTable.

Will other people see the zeros if they open the file?

Number formats and sheet display settings travel with the workbook, so others see the same view. If they copy values out, the original zeros come along.

What is the difference between a blank and a zero?

A zero is a real number that participates in sums and counts. A blank or empty string is treated as no data and is ignored by most functions, which is why the two behave differently in calculations.