Complete the formula to get the weekday number of the date in cell A1.
=WEEKDAY([1])The WEEKDAY function needs a date value or cell reference containing a date. Using A1 correctly references the date in cell A1.
Complete the formula to find the date 5 workdays after the date in cell B2.
=WORKDAY([1], 5)
The WORKDAY function needs a start date as the first argument. Using B2 correctly references the start date.
Fix the error in the formula to get the weekday number of the date in C3 with Monday as day 1.
=WEEKDAY(C3, [1])Using 2 as the second argument makes WEEKDAY count Monday as 1, Tuesday as 2, and so on.
Fill both blanks to create a formula that finds the date 10 workdays after D4, excluding holidays listed in F1:F5.
=WORKDAY([1], [2], F1:F5)
The first argument is the start date D4. The second argument is the number of workdays to add, which is 10.
Fill all three blanks to create a dictionary comprehension that maps each date in the list 'dates' to its weekday number starting on Monday.
{ [1]: WEEKDAY([2], [3]) for [2] in dates }The key is each date, so date. The variable iterating over dates is d. The WEEKDAY second argument 2 makes Monday day 1.