0
0
Excelspreadsheet~10 mins

WEEKDAY and WORKDAY in Excel - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the formula to get the weekday number of the date in cell A1.

Excel
=WEEKDAY([1])
Drag options to blanks, or click blank then click option'
AA1
B1
C"A1"
DDATE(2023,1,1)
Attempts:
3 left
💡 Hint
Common Mistakes
Using a number like 1 instead of a cell reference.
Putting the cell reference in quotes like "A1" which makes it text.
2fill in blank
medium

Complete the formula to find the date 5 workdays after the date in cell B2.

Excel
=WORKDAY([1], 5)
Drag options to blanks, or click blank then click option'
AB2
B5
C"B2"
DTODAY()
Attempts:
3 left
💡 Hint
Common Mistakes
Using a number like 5 as the start date.
Putting the cell reference in quotes like "B2".
3fill in blank
hard

Fix the error in the formula to get the weekday number of the date in C3 with Monday as day 1.

Excel
=WEEKDAY(C3, [1])
Drag options to blanks, or click blank then click option'
A1
B2
C3
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using 1 which counts Sunday as 1.
Using 0 or 3 which are invalid or count days differently.
4fill in blank
hard

Fill both blanks to create a formula that finds the date 10 workdays after D4, excluding holidays listed in F1:F5.

Excel
=WORKDAY([1], [2], F1:F5)
Drag options to blanks, or click blank then click option'
AD4
B10
C5
DTODAY()
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the start date and number of days.
Using a number instead of a cell reference for the start date.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps each date in the list 'dates' to its weekday number starting on Monday.

Excel
{ [1]: WEEKDAY([2], [3]) for [2] in dates }
Drag options to blanks, or click blank then click option'
Adate
Bd
C2
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same variable name for key and loop variable.
Using 1 instead of 2 for the WEEKDAY type argument.