Shifts that run past midnight

Work out the hours of a shift that ends after midnight with MOD, in one formula that works for day and night shifts.

Confident · 9 min · 9 steps

In this lesson

  • =(end-start)*24 goes negative for a shift that ends after midnight.
  • The same result with IF: =IF(end<start,end+1-start,end-start)*24.
  • =MOD(number, divisor) is the remainder of a division: =MOD(7,3) is 1, and =MOD(-0.25,1) is 0.75.

Try a free lesson first

Remove duplicates

Delete repeated rows from a merged list, and choose which columns decide what counts as a duplicate.

Confident · 9 min · Free, with no sign-up

Do the free lesson on your computer.

Send yourself the link and open it on a laptop or desktop.

On your computer, go tolearnford.com/go/BV7C

This lesson is in the full Google Sheets course

US$149 once

Tax included. New lessons are added as they're written.

Get the full course, US$149

30-day money-back guarantee if you've opened fewer than 10 paid lessons.

  • All 215 Google Sheets lessons open today, and every new one as it's written.
  • The Roadmap, Skills and all seven paths.
  • A cheat sheet for every lesson you finish.

Already have the course? Sign in

Skill
Dates and times
Stage
Confident

Where it sits in Dates and times 11 lessons

The steps

9 steps: 4 explanations, 3 Do this, 2 questions, then Your turn.

Try a free lesson first

Remove duplicates

Delete repeated rows from a merged list, and choose which columns decide what counts as a duplicate.

Confident · 9 min · Free, with no sign-up

Do the free lesson on your computer.

Send yourself the link and open it on a laptop or desktop.

On your computer, go tolearnford.com/go/BV7C