Date Functions
Intermediate

WEEKDAY with Monday as day 1

The second argument decides where the week starts — and makes weekends easy to test.

Task:

Deliveries booked for a Saturday or Sunday cost extra. In B2:B7 show Weekend or Weekday for each delivery date, using WEEKDAY with weeks starting on Monday.

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.

7 rows × 2 columns6 cells you fill in
AB
1Delivery dateDay type
23/1/2024
33/2/2024
43/3/2024
53/4/2024
63/8/2024
73/9/2024
What this exercise teachesMay contain the answer

With the default numbering, Sunday is 1 and Saturday is 7, so the weekend is split across both ends and needs an OR. Return type 2 puts the weekend together at 6 and 7, which turns the test into a single comparison.