Convert both, subtract, and multiply by 24.
The door system exports clock-in and clock-out as text. In D2:D6 give each shift's length in hours.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
The same formula in the other shapes it takes at work.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Staff | In (text) | Out (text) | Hours |
| 2 | Gita | 08:00 | 16:30 | |
| 3 | Hal | 09:15 | 17:45 | |
| 4 | Iris | 07:30 | 12:00 | |
| 5 | Jon | 13:00 | 21:15 | |
| 6 | Kat | 10:00 | 18:00 |
Excel stores a time as a fraction of a 24-hour day, so the difference between two times is a fraction too — 0.354 for 8.5 hours. Multiplying by 24 turns it into the number a payroll sheet wants.