WEEKDAY and NETWORKDAYS
Premiumbeginner 15 min4 tasks0/48 pts
WEEKDAY turns a date into a day number. By default Sunday = 1 … Saturday = 7; with a second argument of 2, Monday = 1 … Sunday = 7, which makes "is it a weekend?" a simple >5 test. NETWORKDAYS counts the working days (Mon–Fri) between two dates including both ends, and skips any holidays you list.
Syntax
WEEKDAY(date, [return_type]) · NETWORKDAYS(start, end, [holidays])
Common mistakes
- Forgetting NETWORKDAYS counts both the start and end date.
- Mixing up WEEKDAY numbering: use 2 so Monday = 1.
You’ll also use
The practice tasks combine this lesson with:
IF
IF(logical_test, value_if_true, [value_if_false])Returns one value if a test is TRUE and another if FALSE.
Read the lesson, then try it yourself in a live spreadsheet.