TIME, HOUR and MINUTE
Premiumbeginner 15 min4 tasks0/54 pts
Excel stores a time as a fraction of a day: 12:00 is 0.5 and 6:00 is 0.25. So End - Start gives a fraction of a day, and multiplying by 24 turns it into hours. TIME(hour, minute, second) builds a time, and HOUR and MINUTE pull the parts back out. For a night shift that ends after midnight, MOD(End - Start, 1) stops the result going negative.
Syntax
TIME(hour, minute, second) · HOUR(time) · MINUTE(time) · (End-Start)*24 · MOD(End-Start,1)*24
Example: Start 09:00 and end 17:30: =(C2-B2)*24 returns 8.5 hours.
Common mistakes
- Forgetting the *24, so 8 hours shows as 0.333.
- A night shift (22:00 to 06:00) gives a negative number without MOD.
- Typing 9.30 for half past nine: Excel reads it as a number, not a time. Type 9:30.
Read the lesson, then try it yourself in a live spreadsheet.