Logical Functions
Intermediate

A condition that changes the rate

Multiply by the result of an IF to switch a premium on and off.

Task:

Shift pay is hours × the hourly rate in B1, with weekend shifts paid at time and a half. In D4:D9 give each shift's pay.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

9 rows × 4 columns6 cells you fill in
ABCD
1Hourly rate14
2
3ShiftHoursDay typePay
4Mon8Weekday
5Tue6Weekday
6Sat8Weekend
7Sun5Weekend
8Wed7.5Weekday
9Thu4Weekday
What this exercise teachesMay contain the answer

Putting the IF around only the part that changes — the multiplier — keeps the pay calculation written once. Wrapping the whole thing (IF(weekend, B4*$B$1*1.5, B4*$B$1)) duplicates it, and the two copies can drift when the rate cell moves.