Syntax
| Parameter | Description |
|---|
Examples
Calculate age from birthdate
=DATEDIF(A2, TODAY(), "Y")
Days until a deadline
=B2-TODAY()
Flag overdue items
=IF(B2<TODAY(), "OVERDUE", "On Track")
Common Errors
The cell is formatted as a number instead of a date. Format the cell as Date to see the calendar date instead of a serial number like 45387.
Tips
TODAY() returns just the date (no time). NOW() returns date and time. Use TODAY for date comparisons and NOW for timestamps.
TODAY() updates every time the sheet recalculates. For a fixed date stamp, type the date manually or use a macro.
Add days directly: =TODAY()+30 gives the date 30 days from now. =TODAY()-7 gives last week's date.
Try TODAY in Viztab
Import your data and use TODAY with 370+ other formulas. No signup required.
Open Viztab