Exercise: Calculate Night Shift Hours

Reading time: 3 minutes

Departure minus arrival: it looks easy, until the night shift. When an employee starts at 22:00 and leaves at 06:00, the subtraction gives a negative time and Excel displays ######. The fix is to add one day when the departure is earlier than the arrival.

The following exercise shows you how to calculate durations and how to handle negative times.

What you will practice in this exercise

You work on the clock-in times of employees, with breaks. You answer 6 questions, one formula per question:

  • Gross duration: departure minus arrival (subtraction)
  • Net duration: remove the break in minutes (TIME)
  • Net duration of another employee
  • The trap: a night shift gives a negative time
  • Fix the night shift (IF + 1 day)
  • Net duration converted to decimal hours (× 24)

Practice with exercises

Time — Subtraction and negative times
🔒 Members only

Time — Subtraction and negative times
Calculate durations, subtract breaks and handle night shifts (negative times).

Subscribe →

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 Night Shift Hours

Reading time: 3 minutes

Departure minus arrival: it looks easy, until the night shift. When an employee starts at 22:00 and leaves at 06:00, the subtraction gives a negative time and Excel displays ######. The fix is to add one day when the departure is earlier than the arrival.

The following exercise shows you how to calculate durations and how to handle negative times.

What you will practice in this exercise

You work on the clock-in times of employees, with breaks. You answer 6 questions, one formula per question:

  • Gross duration: departure minus arrival (subtraction)
  • Net duration: remove the break in minutes (TIME)
  • Net duration of another employee
  • The trap: a night shift gives a negative time
  • Fix the night shift (IF + 1 day)
  • Net duration converted to decimal hours (× 24)

Practice with exercises

Time — Subtraction and negative times
🔒 Members only

Time — Subtraction and negative times
Calculate durations, subtract breaks and handle night shifts (negative times).

Subscribe →

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 *