To filter out 0 values in Excel, the fastest method is to use the AutoFilter feature: click the filter arrow in your column header, uncheck the box for "0" in the list of values, and click OK. This hides all rows containing zeros without deleting the data, allowing you to focus only on active or non-zero entries.
Filtering zeros is essential for cleaning up large datasets, improving the readability of financial reports, and preparing data for analysis. Whether you want to temporarily hide zeros to find specific entries or permanently hide them from view using formatting, Excel provides several ways to achieve this depending on whether you need the rows gone or just the digits invisible.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- A dataset containing numerical values, including zeros.
- Basic familiarity with the Excel ribbon interface.
Step-by-Step
Depending on your goal, you can either hide the entire row (Filtering) or just hide the number zero while keeping the row visible (Formatting). Here are the instructions for both.
Method 1: Using AutoFilter (Hides the entire row)
- Select the range of cells you want to filter. If your data has headers, click anywhere inside the data range.
- Go to the Data tab on the top ribbon.
- Click the Filter button (the funnel icon). You will now see small drop-down arrows appear in the header cell of each column.
- Click the drop-down arrow in the column that contains the zero values.
- In the list of checkboxes that appears, scroll down to find 0.
- Uncheck the box next to 0.
- Click OK. All rows containing a zero in that specific column are now hidden.
Method 2: Using Number Formatting (Hides the digit, keeps the row)
- Highlight the cells or columns where you want to hide the zeros.
- Right-click the selected area and choose Format Cells... (or press
Ctrl + 1on Windows /Cmd + 1on Mac). - In the Number tab, select Custom from the Category list on the left.
- In the Type input box, enter the following code:
0;-0;;@ - Click OK. The zeros are now invisible, but the cells still contain the value 0 for calculation purposes.
Method 3: Using a Number Filter (Best for large datasets)
- Apply the Filter to your header (Data > Filter).
- Click the filter arrow in the column header.
- Hover over Number Filters and select Does Not Equal... from the side menu.
- In the dialog box that appears, ensure the first dropdown says "does not equal" and type
0in the input box. - Click OK.
Common Mistakes
- Confusing Filtering with Deleting: Remember that filtering only hides rows. If you delete the "0" rows while a filter is active, you may accidentally delete other data if you are not careful.
- Applying Formatting to the Wrong Cells: Using the Custom Number Format method only hides the visual representation. If you try to use a formula that counts "blank" cells, these cells will still be counted as containing a zero.
- Forgetting to Clear Filters: Users often forget they have a filter active, leading them to believe data is missing from their spreadsheet when it is actually just hidden.
Tips
- Quick Clear: To bring your zeros back quickly, go to the Data tab and click Clear (next to the Filter button) to remove all active filters in the current sheet.
- Slicers: If you have converted your data into a Table (
Ctrl + T), use a Slicer (Table Design > Insert Slicer) for a more visual way to toggle zero values on and off. - Conditional Formatting: Instead of hiding zeros, you can use Conditional Formatting to make them a light grey color, so they are less distracting but still visible.
Troubleshooting
If the steps above do not work as expected, try these solutions:
The "0" is still showing after filtering: Check if the "zero" is actually a number. If the cell is formatted as Text, Excel treats it differently. Select the column, go to the Home tab, and change the format dropdown from "Text" to "Number." Then, re-apply the filter.
The filter arrow is missing: Ensure you haven't accidentally hidden the ribbon or that the sheet isn't protected. If the sheet is protected, go to the Review tab and click Unprotect Sheet.
Custom formatting didn't hide the zeros: Ensure there are no spaces in the code 0;-0;;@. This specific sequence tells Excel: [Positive Number]; [Negative Number]; [Zero]; [Text]. By leaving the third section empty, you tell Excel to display nothing for zero values.
Frequently Asked Questions
Will filtering out zeros delete my data?
No. Filtering only hides the rows from view. The data remains in the spreadsheet and will be included in any formulas (like SUM or AVERAGE) that reference the entire range.
Can I filter out zeros across multiple columns at once?
Standard AutoFilters work on a "per column" basis. If you filter out 0s in Column A, it hides the row. If you then filter out 0s in Column B, it will hide any row that has a 0 in Column A OR a 0 in Column B. To hide rows where 0 appears in ANY of several columns, you may need to create a helper column using an OR formula.
How do I show the zeros again?
Click the filter icon in the column header and select Clear Filter From [Column Name], or click Clear in the Data tab on the ribbon.
Is there a way to hide zeros globally for the whole workbook?
Yes. Go to File > Options > Advanced. Scroll down to "Display options for this worksheet" and uncheck the box that says Show a zero in cells that have zero value. This applies to the entire active sheet.
Why does my "Does Not Equal 0" filter still show some empty cells?
Excel treats a truly empty cell (null) differently than a cell containing the number 0. To hide both, use the filter dropdown and uncheck both "0" and "(Blanks)".