Formula Errors

Prevent Excel from Treating Blank Formula Results as Zero Dates

John WilsonJohn Wilson Nov 11, 2026 868 views

Question details

The user wants to prevent a formula from returning a zero that displays as an invalid date (like 00/01/00) when no data is found, while ensuring dependent formulas work correctly.

How to Prevent Excel from Treating Blank Formula Results as Zero Dates
Product
Excel
Device & OS
not provided
Scenario
Using lookup or reference formulas wrapped in IFERROR on date-formatted cells.
Observed behavior
The formula returns a 0 when no match is found, which Excel formats as a date (e.g., 00/01/00 or January 0, 1900), causing confusion and errors in dependent formulas.
Before you start

Identify whether the dependent formulas referencing this cell require a strict numeric value or if they can process empty text strings without returning #VALUE! errors.

Solution 1Recommended

Hide Zero Values Using Custom Number Formatting

This method keeps the underlying value numeric (0) so dependent formulas don't break, but visually hides the invalid date.

When a formula returns a zero in a date-formatted cell, Excel translates that zero to its epoch date (January 0, 1900). By applying a custom number format, you can instruct Excel to display nothing when the value is exactly zero.

1
Select the affected cells

Highlight the cells displaying the incorrect 00/01/00 or 1/0/1900 date.

2
Open Format Cells

Press Ctrl + 1 on your keyboard, or right-click the selection and choose 'Format Cells' from the context menu.

3
Navigate to Custom formats

Go to the 'Number' tab and select 'Custom' from the category list on the left.

4
Apply the custom format code

In the 'Type' box, enter [=0]"";dd/mm/yy (you can replace dd/mm/yy with your preferred date format) and click OK.

Hide Zero Values Using Custom Number Formatting
Calculation Safe: Because the cell still contains a numeric 0, downstream mathematical formulas will continue to work without throwing #VALUE! errors.
Manage Spreadsheet Formulas Easily

Fix Formula Errors and Format Dates Seamlessly in WPS Spreadsheet

WPS Spreadsheet offers robust formula support and advanced cell formatting options, making it easy to handle blank results, zero values, and complex date formats just like Microsoft Excel.

  1. 1. Open your file: Launch WPS Office and open your spreadsheet document.
  2. 2. Select the cells: Highlight the cells with the formula returning the zero date.
  3. 3. Access Format Cells: Right-click and choose 'Format Cells', then navigate to the 'Custom' category.
  4. 4. Apply the format: Input [=0]"";dd/mm/yy to hide the zero values while keeping the underlying data intact for dependent formulas.
Fully compatible with Microsoft Excel formulas and custom number formats (.xlsx).Intuitive Format Cells dialog for quick custom date and zero-value hiding.Built-in error checking to easily spot and fix IFERROR and INDEX issues.Free, lightweight, and available on Windows, Mac, Linux, and mobile.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show 1/0/1900 or 00/01/00 instead of blank?

In Excel's date system, the number 0 corresponds to January 0, 1900. If a formula returns 0 in a cell formatted as a date, Excel translates that 0 into this default starting date.

Can I just use Excel's options to hide all zero values in the sheet?

Yes, you can go to File > Options > Advanced, scroll to 'Display options for this worksheet', and uncheck 'Show a zero in cells that have zero value'. However, this hides zeros everywhere in the sheet, which might not be ideal if you need legitimate zeros visible elsewhere.

How do I make an IF formula return a true blank instead of a zero?

You can use an empty string "" in your IF statement, like =IF(A1="","",A1). Note that Excel still considers a cell with "" as containing text, not completely empty, which can affect functions like ISBLANK().

Will hiding the zero with custom formatting affect my pivot tables?

Custom formatting only changes how the data is displayed. The underlying value remains 0, so Pivot Tables will still read and group the data as 0 or January 0, 1900, unless you actively filter it out in the Pivot Table settings.