0
0
Google Sheetsspreadsheet~20 mins

WEEKDAY and WORKDAY in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
WEEKDAY and WORKDAY Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Determine the weekday number for a given date
You enter the date 2024-07-04 in cell A1. Which formula correctly returns the weekday number where Sunday = 1 and Saturday = 7?
A=WEEKDAY(A1)
B=WEEKDAY(A1, 2)
C=WEEKDAY(A1, 3)
D=WEEKDAY(A1, 1)
Attempts:
2 left
💡 Hint
The second argument in WEEKDAY controls which day is counted as 1.
📊 Formula Result
intermediate
2:00remaining
Calculate the date 10 working days after a start date
If cell A1 contains the date 2024-07-01, which formula returns the date 10 working days later, excluding weekends?
A=A1+10
B=WORKDAY(A1, 10, {"2024-07-04"})
C=WORKDAY(A1, 10)
D=WORKDAY.INTL(A1, 10, "0000011")
Attempts:
2 left
💡 Hint
WORKDAY counts only weekdays by default.
Function Choice
advanced
2:00remaining
Choose the formula to find the weekday name for a date
You want to display the weekday name (like Monday) for the date in cell A1. Which formula will do this correctly?
A=TEXT(A1, "dddd")
B=WEEKDAY(A1, 1)
C=WORKDAY(A1, 1)
D=DAY(A1)
Attempts:
2 left
💡 Hint
Think about how to convert a date to a text weekday name.
🎯 Scenario
advanced
2:00remaining
Calculate the next working day excluding holidays
You have a start date in A1 and a list of holidays in range B1:B3. Which formula returns the next working day after the start date, skipping weekends and these holidays?
A=WORKDAY(A1, 1, B1:B3)
B=WORKDAY(A1, 1)
C=WORKDAY.INTL(A1, 1, "0000011", B1:B3)
D=A1+1
Attempts:
2 left
💡 Hint
WORKDAY can take a holidays range to exclude those dates.
data_analysis
expert
3:00remaining
Count how many weekdays fall between two dates
You want to count how many weekdays (Monday to Friday) are between the dates in A1 (start) and B1 (end), inclusive. Which formula gives the correct count?
A=COUNTIF(WEEKDAY(ROW(INDIRECT(A1&":"&B1))), "<6")
B=NETWORKDAYS(A1, B1)
C=B1 - A1 + 1 - 2 * INT((B1 - A1 + 1)/7)
D=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&B1)), 2) <= 5))
Attempts:
2 left
💡 Hint
There is a built-in function to count working days between two dates.