How to Display Zero in Excel: Fix Hidden Zero Values
In this article
To display zeros in Excel, go to File > Options > Advanced, scroll down to the "Display options for this worksheet" section, and check the box for "Show a zero in cells that have zero value." This setting ensures that any cell containing a numerical zero is visible rather than appearing as a blank space. This is essential for financial reports, inventory tracking, and data analysis where a blank cell could be misinterpreted as missing data rather than a calculated value of zero.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- An open workbook containing cells that currently show as blank but contain zero values.
- Administrative permissions to change application settings if you are using a restricted corporate environment.
Step-by-Step
Depending on your needs, you can enable zeros globally for a specific sheet or apply specific formatting to certain cells. Note that menu labels may differ slightly based on your version of Excel or region.
Method 1: Using Global Worksheet Options
- Open the Excel workbook and select the specific worksheet where zeros are hidden.
- Click on the File tab in the top-left corner of the ribbon.
- Select Options from the bottom of the left-hand menu. If you do not see Options, click More... and then Options.
- In the Excel Options dialog box, click on the Advanced category in the left sidebar.
- Scroll down through the Advanced settings until you reach the section titled Display options for this worksheet.
- Locate the checkbox labeled Show a zero in cells that have zero value.
- Check this box to enable the display of zeros.
- Click OK at the bottom of the window to apply the changes. All cells in that specific sheet that contain a 0 will now be visible.
Method 2: Using Custom Number Formatting
If you only want zeros to appear in specific cells while remaining hidden in others, use custom formatting.
- Highlight the specific range of cells where you want zeros to be visible.
- Right-click the selected area and choose Format Cells... (or press Ctrl + 1 on Windows / Cmd + 1 on Mac).
- In the Number tab, select Custom from the Category list on the left.
- In the Type input box, you will likely see a code. To ensure zeros are shown, enter the code:
0or#,##0. - If the current code is something like
0;-0;;@, the double semicolon is what tells Excel to hide zeros. Remove the extra semicolon or replace the code with a standard number format. - Click OK. The selected cells will now display zeros regardless of the global worksheet settings.
Method 3: Using Conditional Formatting for Visual Emphasis
Sometimes displaying a zero isn't enough; you may want it to stand out (e.g., highlighting zeros in red to indicate a lack of stock).
- Select the range of cells.
- Go to the Home tab on the ribbon.
- Click Conditional Formatting > Highlight Cells Rules > Equal To....
- In the dialog box, type
0in the left-hand field. - Select your preferred formatting (e.g., Light Red Fill with Dark Red Text) from the dropdown menu on the right.
- Click OK. Now, every zero will not only be visible but visually distinct.
Common Mistakes
One of the most frequent errors is confusing a "zero value" with a "blank cell." A blank cell is truly empty and contains no data; a zero value is a piece of data that happens to be 0. If you enable the "Show a zero" setting and the cell remains blank, the cell is likely empty, not containing a zero. You cannot "force" a blank cell to show a zero without entering a formula or a value into it.
Another common mistake is applying the Global Option to the wrong sheet. The "Display options for this worksheet" setting is sheet-specific. If your workbook has ten tabs and you only change the setting on Sheet1, the zeros will remain hidden on Sheets 2 through 10. You must repeat the process for every tab or use a custom number format across the entire workbook.
Users also frequently struggle with the "Accounting" format. In the Accounting format, Excel often replaces the number 0 with a dash (—). This is a stylistic choice of the Accounting standard, not a hidden value. If you want to see the digit "0" instead of a dash, you must change the cell format from Accounting to Number or Currency.
Tips
To quickly apply the "Show Zero" setting across multiple sheets, you can group your sheets. Right-click a sheet tab at the bottom and choose Select All Sheets. Then, apply the custom number formatting (Method 2) to the entire grid. This is often faster than navigating the Advanced Options menu for every single tab in a large workbook.
If you are building a professional dashboard, consider using a custom format like 0;-0;"Zero";@. This tells Excel to display positive numbers normally, negative numbers normally, but replace the actual digit 0 with the word "Zero." This removes ambiguity for the end-user, making it clear that the value is intentionally zero and not a calculation error.
When working with formulas like VLOOKUP or SUM, zeros often appear when a reference is empty. If you want to hide these specific zeros but keep manual zeros visible, you can wrap your formula in an IF statement: =IF(SUM(A1:A10)=0, "", SUM(A1:A10)). This allows you to maintain control over which zeros are displayed based on logic rather than global settings.
Troubleshooting
If you have followed the steps above and zeros are still not appearing, try these checks in order:
- Check for White Text: It is possible the cells are formatted with a white font color, making the zero invisible against the white background. Select the cells and change the font color to Black.
- Check for Hidden Rows/Columns: Ensure the zero isn't actually in a cell that has been hidden or filtered out. Clear all filters in the Data tab to be sure.
- Verify the Data Type: Sometimes a cell looks like it contains a zero, but it is actually a text string (e.g., "0" entered as text). Check the alignment; by default, numbers align to the right and text aligns to the left. If the zero is on the left, it is text. Convert it to a number using the Data > Text to Columns tool.
- Check for Overlapping Conditional Formatting: You may have a conditional formatting rule that sets the font color to white if the value is 0. Go to Conditional Formatting > Manage Rules and check for any rules affecting the range.
- Check for Custom Formatting Codes: If the cell has a custom format like
#; #; ; @, the third section (between the second and third semicolon) is the zero placeholder. If it is empty, zeros will be invisible. Change the format toGeneralto test if the zero reappears.
Frequently Asked Questions
Why does Excel show a dash instead of a zero?
This happens when the cell is set to the Accounting number format. In this format, zeros are displayed as dashes to make financial statements easier to read. Change the format to Number or Currency to see the digit 0.
Can I hide zeros in only one specific column?
Yes. Instead of using the global Advanced Options, select that column, go to Format Cells > Custom, and enter the code 0;-0;;@. This hides zeros only in the selected range while keeping them visible everywhere else.
Does the "Show a zero" setting affect printed documents?
Yes. The display settings in Excel generally dictate what is seen on the screen and what is sent to the printer. If zeros are hidden in the worksheet view, they will also be blank on your printed page.
Will changing this setting affect my formulas?
No. Changing the display settings only affects the visual representation of the data. The underlying value remains 0, and all calculations, sums, and averages will continue to work accurately.
How do I make zeros appear as a blank space instead?
You can do this by unchecking the Show a zero in cells that have zero value box in the Advanced Options menu, or by using the custom format 0;-0;;@.