How to Show Negative Days for Overdue Dates in WPS Office Spreadsheets
Question details
The user needs a spreadsheet formula that displays a live day count for a due date, where positive values mean days remaining, zero means the due date, and negative values mean the task is overdue.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- Managing job due dates in a WPS spreadsheet and needing to see overdue status as a negative number instead of losing the countdown result.
- Observed behavior
- DATEDIF does not return negative day counts after a job passes its due date, so the overdue status is lost or becomes unreadable.
Make sure your due date cells contain actual date values, not text, and that the cell containing the formula is not formatted as Date. Use General or Number format so negative day values display correctly.
Subtract TODAY() from the Due Date Directly
Use this method whenever you want a live day count that becomes negative automatically after the due date passes.
DATEDIF is designed for complete date units and does not return negative day differences. A direct subtraction uses WPS Spreadsheets date serial numbers, so the result can be positive, zero, or negative.
Click the cell where you want the remaining or overdue day count to appear, for example B1 if the due date is in A1.
Type =A1-TODAY() and press Enter. WPS Spreadsheets calculates the difference between the due date and today's date.
With the result cell selected, press Ctrl+1, choose Number or General, and click OK so negative values appear as normal numbers rather than date or error formatting.

Create an Automatic Overdue Text Label with IF
Use this if you want the same calculation but prefer a readable label such as "3 days overdue" instead of a bare negative number.
Calculate Overdue Days with Negative Values in WPS Office Spreadsheets
Use WPS Office Spreadsheets to subtract TODAY() from a due date and set the result cell to General so overdue days appear as negative values instantly.
- 1. Open your workbook in WPS Office Spreadsheets: Launch WPS Office, open the workbook containing your due dates, or create a new spreadsheet.
- 2. Enter or select the due date cell: Make sure the due date is in a cell such as A1 and is stored as a real date, not text.
- 3. Enter the subtraction formula: Click an empty cell, type =A1-TODAY(), and press Enter to calculate the days between the due date and today.
- 4. Set the result format to General: Select the formula cell, press Ctrl+1, choose General or Number, and click OK so negative values remain visible.

Frequently Asked Questions
Why does DATEDIF not show negative days when a date is overdue?
DATEDIF calculates complete units between two dates and is not reliable for negative differences when the end date is before the start date. Use =A1-TODAY() instead, which returns a negative number once the due date passes.
How do I format the formula result so negative numbers appear normally?
Select the formula cell, press Ctrl+1, choose General or Number, and click OK. Avoid Date format because it can hide or misinterpret negative day values.
Can the cell show 'days remaining' or 'days overdue' text automatically?
Yes. Use a formula such as =IF(A1-TODAY()>=0,A1-TODAY()&" days remaining",ABS(A1-TODAY())&" days overdue") and keep the cell formatted as General.
Will the =A1-TODAY() result update automatically every day?
Yes. TODAY() is a volatile function, so WPS Spreadsheets recalculates the result whenever the workbook opens or a calculation is triggered.
What if my due date cell is stored as text?
A text date can cause a #VALUE! error. Retype the date with a recognized date format or use DATEVALUE to convert it, then use the subtraction formula.




