Practice by topic / Excel / Dates & Times

Date Arithmetic and DAYS Exercises

These 10 exercises build up step by step, starting with days between two dates, use days instead, invoice due date.

3 of 10 free · no sign-up needed · graded on the formula you write

All 10 Date Arithmetic and DAYS exercises

1

Days Between Two Dates

Free

A2 holds a start date and B2 an end date. Write a formula in C2 that returns the number of days between them.

ABC
1StartEndDays
22 Mar 202620 Mar 2026?
Show the solution

Subtract the earlier date from the later one. Use =B2-A2

Right — dates are numbers underneath, so subtracting them gives the days in between.

Expected result in C2: 18

Try it in the live spreadsheet →
2

Use DAYS Instead

Free

A2 holds a project's start date and B2 its end date. Write a formula in C2 that uses DAYS to return the number of days between them.

ABC
1Project startProject endDays
215 Jan 202630 Apr 2026?
Show the solution

DAYS takes the end date first. Use =DAYS(B2,A2)

Good — DAYS takes the end date first, then the start date, and says what it does more clearly than a bare subtraction.

Expected result in C2: 105

Try it in the live spreadsheet →
3

Invoice Due Date

Free

A2 holds an invoice date and B2 the payment terms in days. Write a formula in C2 that returns the due date.

ABC
1Invoice dateTerms (days)Due date
215 Mar 202630?
Show the solution

Add the days to the date. Use =A2+B2

Right — adding a number of days to a date gives a new date.

Expected result in C2: 46126

Try it in the live spreadsheet →
4

Days Late

B2 holds an invoice's due date and C2 the date it was paid. Write a formula in D2 that returns how many days late the payment was.

ABCD
1InvoiceDue datePaid onDays late
2INV-31114 Apr 202621 Apr 2026?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
5

Days Late, or Zero

B2 holds a due date and C2 the paid date. This invoice was paid early, so the plain subtraction is negative. Write a formula in D2 that returns the days late, or 0 when it was paid on time.

ABCD
1InvoiceDue datePaid onDays late
2INV-31214 Apr 202610 Apr 2026?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
6

Late or On Time

B2 holds a due date and C2 the paid date. Write a formula in D2 that returns 'Late' if it was paid after the due date, otherwise 'On time'.

ABCD
1InvoiceDue datePaid onStatus
2INV-31314 Apr 202616 Apr 2026?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
7

Two Weeks Earlier

A2 holds an event date. Write a formula in B2 that returns the date two weeks before it, when the reminder should go out.

AB
1Event dateSend reminder
212 Jun 2026?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
8

Average Days to Pay

A2:A5 hold invoice dates and B2:B5 the dates they were paid. Without adding a helper column, write a formula in D2 that returns the average number of days customers took to pay.

ABCD
1InvoicedPaidAverage days to pay
21 Mar 202621 Mar 2026?
35 Mar 202630 Mar 2026
410 Mar 202624 Mar 2026
512 Mar 20262 Apr 2026

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
9

Days Left on a Contract

B2 holds the date a supplier contract ends and E2 the report date. Write a formula in C2 that returns how many days are left on the contract as of the report date.

ABCDE
1SupplierContract endsDays leftAs of
2Kopi Supplies30 Jun 2026?16 Mar 2026

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
10

Inside the 7-Day Target?

A2 holds the date a request came in and B2 the date it was completed. The target is 7 days. Write a formula in C2 that returns 'Within target' if it took 7 days or fewer, otherwise 'Missed'.

ABC
1RequestedCompletedResult
22 Mar 202610 Mar 2026?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →