Seven codes a row, and the hours add themselves
Each cell is a shift code from a dropdown. The hours for a person’s week come from one
formula — SUMPRODUCT(SUMIF(codes, row, hours)) — which looks up all seven codes in the
shift table at once and adds the hours. It’s the portable way to do it: no XLOOKUP, no
helper row, works in Excel 2016 and Numbers. Change a code’s hours on Setup and every total
follows.
Pro: are you covered, and what does it cost
Coverage counts how many people are on each shift each day and colours the cell against
what Setup says you need — red short, yellow over. Doubles count for both morning and
evening. Payroll splits hours at the overtime threshold, applies the multiplier, and shows
what overtime is costing above plain rate.
Checked, not just built
The build recalculates the workbook in LibreOffice and in a second, independent engine on the sample rota and compares eleven values — hours
for two people, one over 40, pay, on-shift counts, coverage, overtime hours and the payroll
total — against numbers computed outside Excel.