WEEKDAY
The WEEKDAY
function in Google Sheets returns a number representing the day of the week of the provided date.
Function Syntax and Parameters
Syntax: WEEKDAY(date, [type])
Parameters:
date
: The date for which you want to find the day of the week.type
(optional): The numerical or logical value that specifies the starting day of the week. The default value is1
(Sunday).
Step-by-Step Tutorial
-
Using
WEEKDAY
with a specific date:- Example:
=WEEKDAY("2022-01-01")
- Result:
7
(assuming Sunday is the first day of the week)
- Example:
-
Using
WEEKDAY
with a cell reference:- Example: If cell
A1
contains the date2022-01-01
, then=WEEKDAY(A1)
will return7
.
- Example: If cell
Use Cases and Scenarios
- Project Management: Determine the day of the week for project milestones.
- Scheduling: Calculate the weekday for specific date ranges in event planning.
- Financial Analysis: Analyze trends based on the day of the week for stock market data.
Related Functions
YEAR
: Extract the year from a date.MONTH
: Extract the month from a date.DAY
: Extract the day from a date.