Fix Excel IF Formula Showing X for Future Dates
Question details
The user needs an IF formula to display an 'x' only for past dates, but it incorrectly displays 'x' for future dates as well because it relies exclusively on the ISNUMBER function.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating a spreadsheet tracker where a cell must display a specific character ('x') only after a certain date has elapsed.
- Observed behavior
- The current formula displays an 'x' for future dates because Excel stores all dates as serial numbers, causing the ISNUMBER check to return TRUE for any valid date regardless of whether it is past or future.
Verify that the date values in your referenced cells (like E8) are formatted as actual dates rather than plain text, as text dates will cause formula evaluations to fail.
Use IF, AND, and TODAY Functions to Compare Dates
Modify your IF formula to verify both that the cell contains a valid number (date) and that the date is strictly in the past.
Because Excel treats all dates as numbers, checking if a cell is a number is not enough to determine if a date has passed. By combining the ISNUMBER function with the TODAY function inside an AND statement, you can accurately restrict the formula to past dates.
Click on the cell where you want the 'x' or blank result to be displayed.
Type the formula =IF(AND(ISNUMBER(E8),E8<TODAY()),"x","") into the formula bar. Replace E8 with your actual target date cell.
Press Enter to apply the formula. If you have a column of dates, click and drag the fill handle down to copy the formula to other cells.

Verify Cell Date Formatting
Ensure the referenced cell contains a valid date serial number, as custom text formatting can disrupt date formulas.
Easily Manage Date Formulas with WPS Spreadsheet
WPS Spreadsheet fully supports standard spreadsheet date formulas, including IF, ISNUMBER, and TODAY, allowing you to seamlessly track past and future dates. Enjoy a clean interface and built-in error checking to build complex formulas without hassle.
- 1. Open your document: Launch WPS Spreadsheet and open the file containing your date tracking list.
- 2. Select the result cell: Click on the cell where the 'x' marker should appear.
- 3. Apply the corrected formula: Type =IF(AND(ISNUMBER(E8),E8<TODAY()),"x","") into the formula bar and press Enter.
- 4. Verify the logic: Check that future dates result in a blank cell while past dates correctly show an 'x'.

Frequently Asked Questions
Why does ISNUMBER return TRUE for future dates?
Spreadsheet software stores all dates—whether past, present, or future—as numeric serial numbers starting from January 1, 1900. Therefore, any valid date is recognized as a number, making the ISNUMBER function return TRUE.
How do I make a cell remain blank if the condition is not met?
In an IF statement, you can return a completely blank cell by using empty quotation marks ("") in the 'value_if_false' argument, like this: =IF(condition, "x", "").
Can I use conditional formatting instead of an IF formula for past dates?
Yes. If you prefer to visually highlight past dates rather than displaying an 'x', select the cells, go to 'Conditional Formatting' > 'Highlight Cells Rules' > 'Less Than', and enter =TODAY() to apply a specific color to past dates.




