Hide 0 in Excel — Complete Guide (2026)

Hide 0 in Excel five ways: worksheet option, custom format 0;-0;;@, conditional formatting, IF formula, Find/Replace. Mac fix + VBA macro included.

Microsoft ExcelBy Katherine LeeMay 24, 202614 min read
Hide 0 in Excel — Complete Guide (2026)

Hide 0 in Excel: 5 Methods That Actually Work (2026 Guide)

You opened a spreadsheet. Half the cells show 0. They're not real values — they're empty cells your formulas resolved to zero, or placeholders sitting in a budget template. The grid looks noisy, and the boss wants it clean by lunch.

Hide 0 in Excel isn't one button. It's five different fixes, and the right one depends on whether you want to hide every zero on a sheet, only zeros in one column, zeros inside charts, or zeros that come out of a formula. Pick wrong and you'll break a SUM somewhere downstream.

Here's the honest answer up front: the fastest way to hide zero in Excel for an entire worksheet is File → Options → Advanced → Display options for this worksheet → uncheck "Show a zero in cells that have zero value". Three clicks. Done. But it kills every zero on the sheet, including ones you might want visible. That's the catch.

The other four methods give you surgical control — hide zeros in one cell, one column, only in a chart, or only when a calculation evaluates to zero. We'll walk through each one, show you the pros and cons, and flag the gotchas (Mac users, this includes you). By the end, you'll know exactly which method to reach for, and which one to avoid because it secretly breaks your excel sum formula downstream.

One more thing before we dive in. Hidden zeros are still zeros. Even when they're invisible, SUM, AVERAGE, COUNT, and pivot tables will all include them in calculations. Hiding zeros is a display trick, not a data trick. If you need the math to ignore zeros too, you need an IF formula or a filter — covered in Method 4 below.

Quick note on terminology before we get going. "Hide zero in Excel" and "hide zeros in Excel" return the same fix — Excel doesn't distinguish singular from plural in any of its display options. "Hide 0 in Excel" is the most-searched phrasing because it matches what people actually see on screen: a single character, zero, repeated across a grid. Same fix, different search term.

One sheet, all zeros: File → Options → Advanced → scroll to "Display options for this worksheet" → uncheck Show a zero in cells that have zero value. Click OK. Done.

Single cell or range: Select cells → Ctrl+1 → Number tab → Custom → type 0;-0;;@ → OK. Only zeros vanish; positives, negatives, and text stay visible.

Mac users: Excel → Preferences → View → uncheck Show a zero in cells that have zero value. Same effect, different menu path.

Pick Your Method in 30 Seconds

Hide Every Zero on the Sheet
  • Method: Worksheet option (M1)
  • Time: 10 seconds
  • Reversible: Yes — recheck the box
Hide Zeros in One Column
  • Method: Custom format 0;-0;;@ (M2)
  • Time: 20 seconds
  • Reversible: Yes — reset to General
Hide Zeros But Keep the Cell Usable
  • Method: Conditional formatting (M3)
  • Time: 45 seconds
  • Reversible: Yes — delete the rule
Make Formulas Output Blank Instead of 0
  • Method: IF formula (M4)
  • Time: 1 minute
  • Reversible: Yes — edit the formula
Microsoft Excel - Microsoft Excel certification study resource

Method 1: Hide Every Zero on a Worksheet (Fastest)

This is the nuclear option. Three clicks and every zero on the active sheet disappears. The data is still there, the formulas still work, but the screen and the print preview both show blank cells where zeros used to be.

Steps in Excel for Windows

Click File in the top-left ribbon. Hit Options at the bottom of the sidebar (in older versions it's under File → Excel Options). The Excel Options dialog opens. Click Advanced in the left panel. Scroll about a third of the way down until you see a section labeled Display options for this worksheet — note the wording: this worksheet, not the whole workbook.

Use the dropdown next to that section header to pick which sheet you're modifying. Then find the checkbox labeled Show a zero in cells that have zero value. Uncheck it. Click OK. Every zero on that sheet is now invisible.

Want the fix to apply to multiple sheets? You repeat for each one, or you select all sheet tabs first (right-click any tab → Select All Sheets) before opening Options. Heads-up: leaving sheets grouped after the change means any cell edit you make next will write to every selected sheet, so ungroup as soon as the fix is in.

What It Does and What It Doesn't

It hides zeros that are literally the number 0 — typed, pasted, or returned by a formula like =A1-A1. It doesn't hide cells that look like zero but aren't: a text string "0" stays visible because it's not a number. A formula returning empty text ="" was already blank, so nothing changes. A cell formatted as currency showing $0.00 also vanishes — the option strips any zero-value display regardless of number format.

You can also use excel formatting to handle zero display alongside other custom rules, but the worksheet-wide toggle is the bluntest tool. Use it when you want the entire sheet cleaned up and you don't care which zeros disappear.

Method 1: Pros and Cons

Pros
  • +Fastest method — three clicks total
  • +Applies to all current and future zeros on the sheet
  • +No formulas to maintain, no formatting rules to manage
  • +Fully reversible — recheck the box anytime
  • +Works in print preview and PDF exports
Cons
  • All or nothing — can't keep some zeros visible
  • Per-sheet setting, not workbook-wide
  • Doesn't affect charts (charts still plot zeros)
  • Doesn't hide zeros in pivot tables (separate setting)
  • Other users opening your file see zeros unless they have the same setting

Method 2: Custom Number Format 0;-0;;@ (Most Flexible)

This is the cleanest method when you want to hide zeros in specific cells, columns, or ranges without touching the rest of the sheet. The format code 0;-0;;@ tells Excel: show positive numbers as 0, negative as -0, hide zeros entirely, show text as text.

How Number Format Codes Work

Custom formats use a four-section structure separated by semicolons: positive;negative;zero;text. Whatever you put in each section governs how that cell type displays. Leave the third section empty (just the semicolon) and zero values render as nothing. That's the trick — the format isn't deleting the zero, it's telling Excel to draw nothing on screen when the value equals zero.

Apply It in Three Steps

Select the cells, column, or range. Press Ctrl+1 (Cmd+1 on Mac) to open Format Cells. Click the Number tab. Choose Custom from the category list. In the Type field, replace whatever's there with 0;-0;;@. Click OK.

Test it. Type 5 — shows 5. Type -3 — shows -3. Type 0 — shows nothing. Type "hello" — shows hello. The zero is still in the cell (you'll see it in the formula bar when the cell is selected), but the grid displays blank.

Variants for Different Number Types

For currency: $#,##0.00;-$#,##0.00;;@ hides zeros while keeping dollar formatting for non-zero values. For percentages: 0.0%;-0.0%;;@. For dates? Don't use this method — dates with value 0 will show as 1900-01-00 which looks weirder than just leaving them. Use Method 3 instead for date cells.

If you also need add leading zeros in excel, that's a different format code entirely (00000 for a five-digit pad). Don't mix the two — pick one job per format string.

Format Code Examples Compared

Code: 0;-0;;@

Behavior: Positive numbers show as 0, negatives as -0, zeros are blank, text shows normally.

Use when: You want a clean visual cleanup but still want negatives and positives visible. The most common choice.

Excellence Playa Mujeres - Microsoft Excel certification study resource

Method 3: Conditional Formatting (White-on-White Trick)

Conditional formatting hides zeros by changing the font color of any zero-value cell to match the background — usually white. The zero is still drawn on the cell, you just can't see it. Print preview shows blank. Copy-paste-values into another sheet, and the zeros come back because the formatting is conditional on the destination's rules.

This method matters when you need to hide zeros in a small selection without changing the number format (maybe other tools downstream parse your format codes). It also stacks with other conditional formatting excel rules — color scales, data bars, icon sets — so you can build complex visual logic on top of zero suppression.

Set It Up

Select the cells. Home tab → Conditional FormattingNew RuleFormat only cells that contain. In the first dropdown leave "Cell Value". In the second pick "equal to". In the third type 0. Click Format. On the Font tab, change color to white (or whatever matches your sheet background). Click OK twice.

Every cell in the selection that equals zero now has white text on a white background. Invisible. Change a cell from 5 to 0 — it disappears. Change it back — it reappears. Live and reactive.

Gotchas with Conditional Formatting

White-on-white only works if the cell background is actually white. Got a colored row (banded table, alternating fills)? Use the More Colors picker and match the exact background hex. Even one pixel off and zeros become faintly visible. For tables with multiple background colors, this method gets fragile fast — switch to Method 2 instead.

If you select a printed cell with a hidden zero, the cursor still selects it. Tab order still lands there. Screen readers still announce "zero." It's a visual trick only — accessibility and keyboard navigation are unaffected.

One workflow tip: name your conditional formatting rules. Right-click any rule in Manage Rules and rename it from the default "Format only cells that contain" to something descriptive like "Hide zero values". Future-you will thank past-you when there are eight rules on a sheet and only one needs editing later.

Conditional Formatting Setup Checklist

  • Select the target cell range before opening the rule editor
  • Choose 'Format only cells that contain' as the rule type
  • Set the condition to Cell Value → equal to → 0
  • Click Format → Font tab → set color to match cell background
  • Confirm with OK → OK and verify zeros disappear in the selection
  • Test by typing 0 and a non-zero number to confirm the rule fires correctly
  • If background is non-white, use More Colors → enter exact hex code
  • Document the rule in a hidden cell so future editors know it exists

Method 4: IF Formula — Stop Zeros at the Source

The other three methods hide zeros that already exist. This one prevents them from being written in the first place. Wrap any formula in an IF check that returns empty string when the result is zero.

Basic syntax: =IF(A1=0,"",A1). If A1 is zero, output nothing (an empty string). Otherwise, output A1's value. The cell looks blank, but it actually contains an empty text string — which is different from a truly blank cell. That matters for downstream formulas (see the gotcha section below).

Common Patterns

Hide zero from a calculation: =IF((B2-A2)=0,"",B2-A2). Useful in variance columns where most rows show no change. Hide zero from a SUM: =IF(SUM(C2:C10)=0,"",SUM(C2:C10)). Combine with division-by-zero guard: =IFERROR(IF(B2/A2=0,"",B2/A2),"") — this single formula handles both zeros and the excel how to hide divide by zero error case in one line.

Why This Method Breaks Things

The output of IF(A1=0,"",A1) is an empty string, not a true blank. Now imagine A1:A10 all contain this formula and produce mostly empty strings. Try =SUM(A1:A10) — works fine, ignores the strings. Try =COUNTBLANK(A1:A10) — returns 0, because COUNTBLANK doesn't count empty strings as blank. Try =ISBLANK(A1) on a cell with empty string — returns FALSE. Charts built on the column treat empty strings as zero and may plot them on the X-axis.

Bottom line: IF-to-blank is the right tool when humans read the sheet and the column won't be re-aggregated. For data tables, calculation backbones, or chart sources, use Method 1 or 2 instead so the cells stay numeric.

Which Method By Numbers

3 clicksMethod 1 Speed
🎯Per cellMethod 2 Precision
🎨Color matchMethod 3 Visual
🧮FormulaMethod 4 Logic
🔍Find/ReplaceMethod 5 Range
🍎All 5Mac Compatible
Excel Spreadsheet - Microsoft Excel certification study resource

Method 5: Find and Replace (One-Time Cleanup)

The Find and Replace approach is a destructive one-time fix. Use it when you've inherited a static dataset full of zeros that shouldn't be there, and you want them gone permanently — not hidden, gone.

Steps That Won't Wreck Your Data

Press Ctrl+H (Cmd+H on Mac). In the Find what field type 0. Leave Replace with blank. Click Options to expand the dialog. Critical: check Match entire cell contents. Without this checkbox, Excel will strip every zero from every number — turning 100 into 1, 2030 into 23, and 0.05 into .5. That'll ruin your day.

With "Match entire cell contents" enabled, only cells that contain exactly 0 (and nothing else) get replaced with blank. Click Replace All. Excel reports the count. Done.

When Not to Use This Method

Don't use Find/Replace on cells that contain formulas. The formula gets replaced too, leaving a permanently empty cell instead of a recalculating one. Also avoid it on tables where new rows will be added — those new zeros come right back, and you'll be running the same find-replace forever. For those scenarios, switch to Method 1 (worksheet option) or Method 2 (custom format) which apply continuously.

Worth knowing: Find/Replace truly empties the cell. A blanked cell returns TRUE for =ISBLANK(), unlike the IF formula trick from Method 4. If you specifically need cells to read as blank to downstream tools, Find/Replace is the only method that delivers a true blank.

Excel for Mac — The Menu Is Different

Mac users hit the same toggle through a different path. Open Excel. Click Excel in the top menu bar (next to the Apple logo) → Preferences. The Preferences window opens. Click View under the Authoring heading. Find Show a zero in cells that have zero value in the Window options section. Uncheck it. Close the Preferences window.

Custom number formats (Method 2) work identically on Mac — Cmd+1 to open Format Cells, same dialog, same 0;-0;;@ code. Conditional formatting also identical. The only Mac quirk: in older Mac versions (2019 and earlier), the per-worksheet selector doesn't exist — the setting applies to the active workbook only. Test in your version before assuming.

VBA Macro: Hide Zeros Across Every Sheet

Got a 30-sheet workbook and need zeros gone from all of them? Click-clicking through File → Options 30 times is brutal. A 4-line VBA macro does it in one keystroke.

The Macro

Press Alt+F11 to open the VBA editor (Mac: Tools → Macro → Visual Basic Editor). Insert → Module. Paste this:

Sub HideZerosAllSheets()
  Dim ws As Worksheet
  For Each ws In ThisWorkbook.Worksheets
    ws.Activate
    ActiveWindow.DisplayZeros = False
  Next ws
End Sub

Close the editor with Alt+Q. Run it: Alt+F8 → select HideZerosAllSheets → Run. Every sheet in the workbook now hides zeros. Save the workbook as .xlsm to keep the macro available next time. To show zeros again, swap = False for = True and rerun.

Macro Setup and Security

If macros are disabled, the macro won't run. Check our guide on enable macros in excel to flip the security setting. For a deeper dive on automating spreadsheet tasks, the excel macros walkthrough covers macro recording, editing, and the security model in full.

Hiding Zeros in Charts (Different Beast)

Replace zeros with =NA() in the source range. Line charts skip NA values, leaving a clean gap instead of dropping to zero. Bars and columns also skip them.

The cell shows #N/A in the grid — hide with conditional formatting (white-on-white).

Side effect: any formula referencing the cell propagates #N/A errors unless wrapped in IFERROR.

When Hiding Zeros Breaks Formulas (The Hidden Cost)

Hiding zeros visually does not change the data. Sum of [3, 0, 0, 5] still equals 8, whether the zeros show or not. AVERAGE of the same range returns 2 (because it divides 8 by 4, including the zeros). COUNT returns 4. Pivot tables aggregate every value including hidden zeros.

If you need the math to actually skip zeros, you need a different formula — not a different display. =AVERAGEIF(A1:A10,"<>0") averages only non-zero cells. =COUNTIF(A1:A10,"<>0") counts only non-zero cells. =SUMIF(A1:A10,"<>0") sums them.

Be especially careful with conditional formatting (Method 3) and IF-to-blank (Method 4) on cells that feed downstream calculations. Method 4 in particular turns numbers into empty strings, which break numeric formulas in subtle ways. If you spot a formula returning #VALUE! after hiding zeros, that's the cause — convert the IF outputs back to numbers, or use Method 2 instead.

Bottom line: pick Method 1 or 2 whenever the underlying values still need to feed math. Pick Method 4 only when the column is a presentation layer humans read and nobody else aggregates downstream.

Related Excel Practice Tests

FREE Excel Questions and Answers

Excel Formulas Practice

Excel Functions Practice

Excel Basic and Advanced

Excel Questions and Answers

Related Excel Guides

About the Author

Katherine LeeMBA, CPA, PHR, PMP

Business Consultant & Professional Certification Advisor

Wharton School, University of Pennsylvania

Katherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.