How to Check if Today is Past a Due Date in Excel (Formula)
Question details
The user needs an Excel formula to compare the current date with a specific due date to determine if it is past due, while avoiding common syntax errors like #NAME?.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking deadlines or project due dates in a spreadsheet.
- Observed behavior
- Comparing a cell date to the current date using the TODAY() function without returning a #NAME? error or encountering text string issues.
Ensure that your due dates (e.g., in cell K3) are formatted as valid Excel dates, not as plain text, so the TODAY() function can accurately compare them.
Use the IF and TODAY() Functions to Check Due Dates
The most effective way to determine if a date is past due is by combining the IF function with the TODAY() function.
The TODAY() function automatically retrieves the current system date. Because it is a function, it strictly requires empty parentheses (). Without them, Excel attempts to interpret 'TODAY' as a named range, returning a #NAME? error.
By nesting this within an IF statement, you can instruct Excel to output specific text, such as 'PASSED DUE' or 'OK', based on whether the current date is mathematically greater than the target deadline.
Click on the blank cell where you want the status text (e.g., 'PASSED DUE' or 'OK') to appear.
Type the formula =IF(TODAY()>K3, "PASSED DUE", "OK") into the formula bar and press Enter. Make sure to replace 'K3' with the actual cell reference that contains your due date.
Hover over the bottom-right corner of the cell you just edited until the fill handle (a small plus icon) appears, then drag it down to apply the formula to the rest of your due date list.

Easily Track Due Dates in WPS Spreadsheet
WPS Office provides a highly capable Spreadsheet application where you can use advanced formulas like IF and TODAY() exactly as you would in Microsoft Excel to manage your deadlines effectively.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your deadline tracking workbook.
- 2. Insert the TODAY function: Click the cell next to your due date and input the formula =IF(TODAY()>K3, "PASSED DUE", "OK").
- 3. Format your dates: If needed, right-click the due date column, select 'Format Cells', and apply the correct Date format to ensure precise calculations.

Frequently Asked Questions
Why is my formula returning a #NAME? error instead of the date status?
This usually happens if you type TODAY without the parentheses. Excel recognizes it as an undefined text string or named range. Ensure you write it exactly as TODAY() for the formula to work properly.
Can I highlight the past-due cells instead of just showing text?
Yes. You can use Conditional Formatting for a visual warning. Select your due date cells, go to 'Conditional Formatting' > 'Highlight Cells Rules' > 'Less Than', and enter =TODAY() to format past dates in red.
How do I calculate the exact number of days a task is past due?
You can simply subtract the due date from today's date. Use the formula =TODAY()-K3 and ensure you format the result cell as 'Number' or 'General' rather than a Date to see the precise difference in days.
Does the TODAY() function update automatically if I leave the file open for days?
Yes, the TODAY() function is volatile. It will automatically refresh to the current date based on your computer's system clock whenever the workbook is opened, saved, or manually recalculated (by pressing F9).




