Exercise: Calculate the Days Between Two Dates

Reading time: 3 minutes

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

difference dates quiz83

Date Exercise - Calculate an invoice's payment time (in days and weeks)

Calculate the number of days between two invoice dates by subtraction, add days to a date, and count full weeks with INT — 6 guided steps.

Compute the difference between D2 and C2 in G2

1 / 6

Compute the payment period of INV-001 (D2 − C2)

Dates — Q1 · 605

Compute the difference between D5 and C5 in G2

2 / 6

Compute the payment period of INV-004 (D5 − C5)

Dates — Q2 · 606

Compute the difference between D10 and C10 in G2

3 / 6

Compute the payment period of INV-009 (D10 − C10)

Dates — Q3 · 607

Compute the difference between C6 and C2 in G2

4 / 6

Number of days between the issue of INV-001 and INV-005 (C6 − C2)

Dates — Q4 · 608

Add 7 days to C2 in G2

5 / 6

Add 7 days to the issue date of INV-001 (C2)

Dates — Q5 · 609

Divide the difference D4−C2 by 7 and round down with INT — G2

6 / 6

Number of full weeks between C2 and D4 (use INT)

Dates — Q6 · 610

Your score is

0%

Related articles

Excel exercises: practice online with instant correction

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Exercise: Calculate the Days Between Two Dates

Reading time: 3 minutes

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

difference dates quiz83

Date Exercise - Calculate an invoice's payment time (in days and weeks)

Calculate the number of days between two invoice dates by subtraction, add days to a date, and count full weeks with INT — 6 guided steps.

Compute the difference between D2 and C2 in G2

1 / 6

Compute the payment period of INV-001 (D2 − C2)

Dates — Q1 · 605

Compute the difference between D5 and C5 in G2

2 / 6

Compute the payment period of INV-004 (D5 − C5)

Dates — Q2 · 606

Compute the difference between D10 and C10 in G2

3 / 6

Compute the payment period of INV-009 (D10 − C10)

Dates — Q3 · 607

Compute the difference between C6 and C2 in G2

4 / 6

Number of days between the issue of INV-001 and INV-005 (C6 − C2)

Dates — Q4 · 608

Add 7 days to C2 in G2

5 / 6

Add 7 days to the issue date of INV-001 (C2)

Dates — Q5 · 609

Divide the difference D4−C2 by 7 and round down with INT — G2

6 / 6

Number of full weeks between C2 and D4 (use INT)

Dates — Q6 · 610

Your score is

0%

Related articles

Excel exercises: practice online with instant correction

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.

Leave a Reply

Your email address will not be published. Required fields are marked *