In Excel, a date is just a number. Day 1 is January 1, 1900, and every day adds 1. This is why you can subtract two dates to get a number of days, or add 7 to a date to move one week forward. No special function is needed.
The following exercise shows you how to calculate the gap between two dates with a simple subtraction.
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:
- Payment period of invoice INV-001 (due date minus issue date)
- Payment period of invoice INV-004
- Payment period of invoice INV-009
- Days between two issue dates (subtraction)
- Add 7 days to a date (addition)
- Number of full weeks between two dates (INT)
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.