Returns the day of the week for a given date.
WEEKDAY(date, type)
returns the day of the week that date falls on, as a number.
The number returned depends on type, as follows:
day of the week | type=1 | type=2 | type=3 | |
|---|---|---|---|---|
Sunday | 1 | 7 | 6 | |
Monday | 2 | 1 | 0 | |
Tuesday | 3 | 2 | 1 | |
Wednesday | 4 | 3 | 2 | |
Thursday | 5 | 4 | 3 | |
Friday | 6 | 5 | 4 | |
Saturday | 7 | 6 | 5 |
If type is omitted, it is assumed to be 1.
WEEKDAY("2021-12-18", 1)
returns 7. 18 Dec 2021 falls on a Saturday.
Employee Shift Scheduling Analysis
Scenario: A retail store needs to analyze employee working hours and sales performance based on the day of the week. They want to identify peak days for staffing and understand if sales vary significantly on different days.
Problem: The store has a list of sales transactions and employee work shifts, but they need to easily determine which day of the week each transaction or shift occurred on.
Solution: Use the WEEKDAY function to extract the day of the week from the date column.
Table: Sales Transactions Data
Transaction ID | Date | Sales Amount | Weekday (Number) | ||
|---|---|---|---|---|---|
A | B | C | D | ||
1 | 1001 | 7/1/2025 | $150.00 | 3 | |
2 | 1002 | 7/2/2025 | $210.00 | 4 | |
3 | 1003 | 7/3/2025 | $90.00 | 5 | |
4 | 1004 | 7/4/2025 | $300.00 | 6 | |
5 | 1005 | 7/5/2025 | $450.00 | 7 | |
6 | 1006 | 7/6/2025 | $520.00 | 1 | |
7 | 1007 | 7/7/2025 | $180.00 | 2 | |
8 | 1008 | 7/8/2025 | $280.00 | 3 |
Let's break down the results for each row:
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof