The book: files and exercises · Lesson 11 of 24

Lesson 11 exercises: dates, DATEDIF and workdays

Four exercises on dates with the pottery class students in lesson11.xlsx: an exact age with DATEDIF, the days between two dates, workdays with the 2026 federal holidays and a 5-workday deadline. Type the formula in the fx bar and the sheet checks it right away.

Lesson 11. Dates and times: due dates, workdays and ages

Use the Exercises sheet in lesson11.xlsx: the students of a pottery class, with the reference date 12/15/2026 in B2 and the 2026 federal holidays in J4:J14.

Files: lesson11.xlsx · solutions: lesson11-solutions.xlsx.

In the exercises with a sheet, type the formula in the fx bar and click Check: the sheet works it out the way Excel does, with commas between the arguments (semicolons work too), and also tries it with other data, to see whether it still works when the data changes. In the other exercises, you work in Excel with the lesson's file and type the result here.

At the end of the page you'll find the lesson's Bonus challenge: one more exercise, whose answer isn't in the book. You check it only here.

Exercise 1

How old is Brian, in complete years, on the reference date? And what would YEAR minus YEAR give?
In D5, Brian's age in complete years
fx
And what would YEAR minus YEAR give?
Show the answer

=DATEDIF(B5,$B$2,"Y") = 40: Brian's birthday is December 20, after the reference date. =YEAR($B$2)-YEAR(B5) would give 41, which is wrong.

Exercise 2

How many days have passed between Chloe's enrollment and the reference date?
In E6, the days since Chloe enrolled
fx
Show the answer

=$B$2-C6 = 180 days.

Exercise 3

How many workdays (holidays taken out) are there between Derek's enrollment and the reference date, counting the first and last day?
In F7, Derek's workdays
fx
Show the answer

=NETWORKDAYS(C7,$B$2,$J$4:$J$14) = 72. Without the holiday list you would get 76: four holidays fall on weekdays in that period (Labor Day, Columbus Day, Veterans Day and Thanksgiving).

Exercise 4

Each student must hand in a signed safety form within 5 workdays of enrolling. When is Frank's deadline if you take the holidays into account? And without them?
In G8, Frank's deadline with the holidays
fx
In H8, the deadline without the holidays
fx
Show the answer

=WORKDAY(C8,5,$J$4:$J$14) = 5/28/2026 (Memorial Day, 5/25/2026, doesn't count); without holidays, =WORKDAY(C8,5) = 5/27/2026.

Bonus challenge

The answer isn't in the book: you check it only here.

Exercises sheet: on the date in B2, Chloe has already had her 2026 birthday. In an empty cell, write a formula with DATE, YEAR, MONTH and DAY that calculates the number of days between B2 and her next birthday. How many do you get?
In I6, the days until Chloe's next birthday
fx
Show the answer

=DATE(YEAR($B$2)+1,MONTH(B6),DAY(B6))-$B$2 = 78 days, from 12/15/2026 to 3/3/2027. DATE builds next year's birthday with the month and day from B6, then you subtract the reference date. Without the +1 you get a negative number: that's the 2026 birthday, which has already passed.