Date Functions
Intermediate

How many days in the month?

DAY of the month's last day is its length.

Task:

Monthly rent is split by days occupied, so you need each month's length. In B2:B6 give the number of days in the month of each date.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

6 rows × 2 columns5 cells you fill in
AB
1DateDays in month
22/10/2024
32/10/2025
44/30/2024
57/4/2024
69/1/2024
What this exercise teachesMay contain the answer

The last day's number is the month's length, leap years included, so there is no table of month lengths to maintain. February 2024 gives 29 and February 2025 gives 28 from the same formula.