TODAY is the only date that changes by itself. Every morning, the function returns the new date, so a file that uses it is always up to date. This is exactly what you need to follow invoices: the number of days left before a due date is recalculated each time you open the workbook.
The following exercise shows you how to combine TODAY with a subtraction and an IF test.
What you will practice in this exercise
You work on a table of 10 invoices with an issue date and a due date. You answer 6 questions, one formula per question:
- Display today’s date (TODAY)
- Days left before the due date of the first invoice (subtraction)
- Days left for invoice FAC-005
- Is invoice FAC-001 overdue? (IF + TODAY)
- Is invoice FAC-006 overdue? (IF + TODAY)
- Is the due date less than 30 days away? (IF + comparison)
Practice with exercises
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.