Excel dates and times: lessons and a project
For anyone who works out deadlines, ages, shifts or hours for pay. You'll add days to dates, count working days with NETWORKDAYS, turn shift times into hours, and deal with night shifts that end after midnight. The project is a care home's rota for a week: hours, overtime, weekend shifts at time and a half, and the working days until pay day.
8 lessons45 exercises24 Check questions1 free lessona project in Excel2.5 suggested CPD hours
Each report is due two weeks after it's requested. In C2, work out each deadline.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Employee | Requested | Deadline | Sent in | Days late | |||
| 2 | Grace | 08/09/2026 | 20/09/2026 | Sent in late | ||||
| 3 | Tom | 08/09/2026 | 25/09/2026 | |||||
| 4 | Priya | 10/09/2026 | 25/09/2026 | |||||
| 5 | Marek | 10/09/2026 | 01/10/2026 | Project starts | 03/09/2026 | |||
| 6 | Nia | 15/09/2026 | 29/09/2026 | Project ends | 23/10/2026 | |||
| 7 | Ollie | 15/09/2026 | 02/10/2026 | Weekdays in project | ||||
| 8 | Lucy | 17/09/2026 | 30/09/2026 | |||||
| 9 | Hamza | 17/09/2026 | 06/10/2026 | Date of birth | 14/08/1988 | |||
| 10 | Review date | 15/05/2027 | ||||||
| 11 | Age on review date |
The lessons
Each lesson starts with a short worked example, then exercises on real-looking data, marked the moment you press Check, with hints when you need them. It ends with a Check: new questions on fresh data, with no hints. Pass it and the lesson is marked Secure.
- Dates and deadlines Free
Date arithmetic, NETWORKDAYS, DATEDIF · 6 exercises · a Check of 3 questions · guide: Age and length of service in Excel - Times and hours worked Pro
Shift lengths, ×24, breaks, past midnight, [h]:mm · 5 exercises · a Check of 3 questions · guide: Hours worked in Excel - Rotas and timesheets Pro
Weekly hours, shift counts, overtime, pay, late starts · 5 exercises · a Check of 3 questions - Review: dates and times Pro
Days late, EDATE, shift lengths, night shifts, overtime and pay · 6 exercises · a Check of 3 questions
Extra practice
Useful, but not needed for the project.
- Building dates: DATE, DAYS, YEAR, MONTH Pro
DATE, DAYS, YEAR, MONTH, DAY, TODAY · 5 exercises · a Check of 3 questions - Today's date: TODAY and DATEDIF Pro
TODAY, DATEDIF, days until, overdue, age · 5 exercises · a Check of 3 questions - NOW, WEEKDAY and WORKDAY Pro
NOW, hours left, WEEKDAY with 1 and 2, WORKDAY, bank holidays · 7 exercises · a Check of 3 questions - Review: date functions Pro
Date arithmetic, DATE, DAYS, DATEDIF, TODAY · 6 exercises · a Check of 3 questions
The project in Excel: Rota and timesheet
A care home's rota for a week of day, late and night shifts. Work out hours, overtime, weekend pay and pay day.
What you'll build:
- Hours from start and end times, including night shifts
- Weekend shifts paid at time and a half
- Hours, overtime and pay for each person
- Pay day, and the working days until it
Download the workbook and do the job in Excel. A Check sheet in the workbook ticks off each task as you get it right, and the model answers are there to compare with when you've finished. You'll need Excel 2019 or later, or Excel for the web, which is free with a Microsoft account.
Counts towards a certificate
Unit 6 is part of the Excel Intermediate certificate of achievement (Units 4 to 6, 9 hours of suggested CPD). To earn it, pass the Check in every lesson of those units while signed in (reviews and extra practice aren't needed), and finish each unit's project in Excel. Our server checks the work itself. Certificates come with Pro: see how they work.
Online practice and assessment, completed without supervision. Confident Cells is independent and isn’t connected with Microsoft. This is not a formal qualification.
Guides for this topic
- Age and length of service in Excel: DATEDIFWork out age or length of service in whole years, or years and months, with DATEDIF. Worked dates, how to fix #NUM!, and a free practice box to try it in.
- Days and working days between two datesHow to count the days between two dates in Excel by subtracting or with DAYS, then the working days with NETWORKDAYS, leaving out bank holidays. With practice.
- Hours worked in Excel: shifts, breaks and timesheetsHow to work out hours worked in Excel from start and end times, turn them into decimal hours for pay, take off unpaid breaks and handle night shifts.
Questions
Why does my date show as a number?
Excel keeps a date as a count of days, so 1 January 2026 is 46023. If a date shows as a number, the cell has lost its date format. Choose Short Date in the number format box on the Home tab, or press Ctrl+Shift+3 (Control+Shift+3 on a Mac).
How do I work out hours for a shift past midnight?
A night shift from 22:00 to 06:00 comes out negative, because 06:00 is smaller than 22:00. =MOD(C2-B2,1) adds the missing day back and gives 8:00. Multiply by 24 to get 8 hours for pay. The hours worked guide shows breaks too.