Discover how to make your date calculations foolproof and effortless with just two simple functions!
Why WEEKDAY and WORKDAY in Google Sheets? - Purpose & Use Cases
Imagine you have a list of dates and you need to know which day of the week each date falls on, or you want to find the next working day after a holiday or weekend.
Doing this by hand means checking calendars, counting days, and skipping weekends manually.
Manually checking each date is slow and easy to mess up, especially if you have many dates.
You might forget to skip weekends or holidays, causing errors in your planning or reports.
The WEEKDAY and WORKDAY functions automatically tell you the day of the week for any date and calculate future working days, skipping weekends and holidays.
This saves time and avoids mistakes, making your work more reliable.
Check calendar for each date; count days; skip weekends by memoryWEEKDAY(date) // returns day number WORKDAY(start_date, days) // returns next working day
You can quickly plan schedules, track deadlines, and analyze dates without worrying about weekends or holidays.
A manager wants to know the weekday of each invoice date and find the next business day to schedule payments, avoiding weekends and holidays automatically.
Manual date checks are slow and error-prone.
WEEKDAY and WORKDAY automate day calculations and skip non-working days.
This makes scheduling and date analysis fast and accurate.
Practice
WEEKDAY function return when given a date in Google Sheets?Solution
Step 1: Understand the purpose of WEEKDAY
The WEEKDAY function returns a number from 1 to 7 representing the day of the week for a given date.Step 2: Compare options with function behavior
Only a number representing the day of the week for that date correctly describes this behavior; others describe unrelated functions.Final Answer:
A number representing the day of the week for that date -> Option DQuick Check:
WEEKDAY = day number [OK]
- Thinking WEEKDAY returns the month's name
- Confusing WEEKDAY with date difference functions
- Assuming WEEKDAY returns the next workday
Solution
Step 1: Recall WORKDAY function syntax
WORKDAY(start_date, days, [holidays]) adds working days to start_date, skipping weekends.Step 2: Check each option's syntax
=WORKDAY(A1, 5) correctly uses WORKDAY with start_date A1 and 5 days. Others misuse argument order or functions.Final Answer:
=WORKDAY(A1, 5) -> Option BQuick Check:
WORKDAY(start_date, days) [OK]
- Swapping arguments in WORKDAY
- Using WEEKDAY instead of WORKDAY to add days
- Adding days directly without WORKDAY
=WORKDAY(A1, 3) return?Solution
Step 1: Identify the start date and days to add
Start date is Friday, June 14, 2024. We add 3 working days skipping weekends.Step 2: Count 3 working days skipping weekend
Day 1: Monday, June 17
Day 2: Tuesday, June 18
Day 3: Wednesday, June 19Final Answer:
2024-06-19 (Wednesday) -> Option AQuick Check:
WORKDAY skips weekends, so 3 workdays after Friday is Wednesday [OK]
- Counting weekend days as workdays
- Adding days directly without WORKDAY
- Misidentifying the weekday of the start date
=WORKDAY(A1, 10, C1:C3) returns an error. What is the most likely cause?Solution
Step 1: Understand WORKDAY arguments
WORKDAY(start_date, days, [holidays]) expects holidays as valid dates in a range.Step 2: Identify common error with holidays
If holidays range contains invalid or text values, WORKDAY returns an error.Final Answer:
The holidays range C1:C3 contains invalid dates -> Option CQuick Check:
Invalid holiday dates cause WORKDAY errors [OK]
- Assuming days argument must be a date
- Thinking WORKDAY can't accept holiday ranges
- Ignoring invalid or text values in holidays
Solution
Step 1: Calculate the date 7 working days after June 10, 2024
Use WORKDAY with start date DATE(2024,6,10), days 7, and holidays B1:B2 to skip weekends and holidays.Step 2: Find the weekday number of the resulting date
Wrap the WORKDAY result inside WEEKDAY to get the day number of that date.Final Answer:
=WEEKDAY(WORKDAY(DATE(2024,6,10), 7, B1:B2)) -> Option AQuick Check:
WORKDAY then WEEKDAY gives weekday number after skipping holidays [OK]
- Using WEEKDAY before WORKDAY
- Adding days directly ignoring holidays
- Trying to add WEEKDAY results to dates
Ready to prove it?
Pass the test and this pattern moves unknown
