Return a Blank Instead of 0 from an Excel Lookup Formula
Question details
Return a blank-looking result when a date-based formula refers to a blank source cell, rather than displaying 0.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A formula checks whether Shipping!J11 matches today's date and returns the value from Shipping!H11.
- Observed behavior
- The formula displays 0 when the date matches but the source cell is blank.
Check that Shipping!J11 contains a date and identify whether Shipping!H11 can contain a legitimate zero. If J11 also contains a time, a direct comparison with TODAY() may not match.
Check the source cell for a blank value
Use this approach when real zero values must remain visible.
In Excel, select the cell containing the date-based formula.
In the formula bar, enter =IF(Shipping!J11=TODAY(),IF(Shipping!H11="","",Shipping!H11),"") and press Enter.
Check the result with a blank H11 and with a legitimate 0 in H11. When J11 matches today's date, the blank source should appear blank and the zero should remain visible.

Hide all zero results with LET
Use this option if every zero result should appear blank and your Excel version supports LET.
Return a blank result in WPS Spreadsheets
Use an IF formula in WPS Spreadsheets to check today's date and leave the result blank when the source cell is blank.
- 1. Open the workbook: Open WPS Spreadsheets and use Menu > Open to select your Excel workbook.
- 2. Enter the formula: Select the result cell and enter =IF(Shipping!J11=TODAY(),IF(Shipping!H11="","",Shipping!H11),"") in the formula bar. Change the references if needed.
- 3. Check and save: Press Enter, check the result against the source cells, and use Menu > Save As to save the workbook in XLSX format.

Frequently Asked Questions
Why does my Excel formula show 0 when the source cell is blank?
A direct reference to an empty cell can return 0. Test the source first with IF, such as IF(Shipping!H11="","",Shipping!H11), to display an empty string instead.
How can I keep real zeros visible?
Test whether the source cell equals an empty string rather than replacing every zero result. For example, use IF(Shipping!H11="","",Shipping!H11).
Why does my date match fail even though the date looks like today?
Shipping!J11 may include a time value. If it does, compare the date portion with TODAY(), for example INT(Shipping!J11)=TODAY(), after confirming the cell contains a valid date.
Is a formula that returns an empty string truly blank?
No. The cell still contains a formula, even though its result looks blank. This can affect functions that distinguish empty cells from empty strings.




