WEEKDAY(date, [type])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
date:
The date for which you want to determine the day of the week. This can be a date value, a cell reference containing a date, or a formula that returns a date.
type:
An optional parameter that specifies the type of return value. It determines how the days of the week are numbered. If omitted, the default is 1, where Sunday is 1 and Saturday is 7. Other options include 2 (Monday is 1, Sunday is 7) and 3 (Monday is 0, Sunday is 6).
The WEEKDAY function in Google Sheets is a useful tool that returns the day of the week corresponding to a date. It can be particularly helpful for scheduling, planning, and analyzing data based on days of the week. The function can return a number representing the day, which can be customized to start the week on different days.
In simpler terms, WEEKDAY allows you to determine which day of the week a specific date falls on, making it easier to organize and interpret your data.
Imagine you are tracking project deadlines and want to know which day of the week each deadline falls on:
| TaskID | TaskName | Deadline |
|---|---|---|
| 1 | Project A | 2023-10-02 |
| 2 | Project B | 2023-10-05 |
| 3 | Project C | 2023-10-07 |
You want to find out the day of the week for each deadline.
To achieve this, you would use the WEEKDAY function as follows:
=WEEKDAY(C2, 1)In this formula:
C2 is the cell containing the Deadline date.1 specifies that the week starts on Sunday (1 = Sunday, 2 = Monday, ..., 7 = Saturday).When you apply the WEEKDAY formula to the Deadlines Table, the output would look like this:
| TaskID | TaskName | Deadline | Day of Week |
|---|---|---|---|
| 1 | Project A | 2023-10-02 | 2 |
| 2 | Project B | 2023-10-05 | 5 |
| 3 | Project C | 2023-10-07 | 7 |
In this case, the WEEKDAY function returns:
WEEKDAY is beneficial because it allows you to easily categorize and analyze data based on the day of the week. This can be particularly useful for scheduling tasks, tracking attendance, or analyzing trends in data over specific days. By understanding which days correspond to specific dates, you can make more informed decisions and improve your planning processes.
WEEKDAY is an essential function for anyone working with dates in Google Sheets, providing a straightforward way to enhance data organization and analysis.
Happy spreadsheeting!
You have a table with dates in Column A and want to determine the day of the week for each date. By using the WEEKDAY formula, you can quickly identify if a date falls on a weekend or a weekday, aiding in scheduling and planning tasks efficiently.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.