Category: FUNCTION | Updated: 2026-11-22

How to Use the WEEKDAY Function in Google Sheets | Get the Day of the Week as a Number

How to Use the WEEKDAY Function

The WEEKDAY function returns an integer from 1 to 7 representing the day of the week for a given date. Because it returns a number, it is widely used with IF for weekend checks and with conditional formatting to highlight weekends on calendars.

Syntax

=WEEKDAY(date, [type])
  • date: The date whose day of the week you want to find.
  • type (optional): Specifies which day is counted as 1. Defaults to 1 if omitted.
    • 1 (or omitted): Sunday = 1, Monday = 2, …, Saturday = 7
    • 2: Monday = 1, Tuesday = 2, …, Saturday = 6, Sunday = 7
    • 3: Monday = 0, Tuesday = 1, …, Saturday = 5, Sunday = 6

Examples

Here are results for Sunday, November 22, 2026, and Monday, November 23, 2026, across different type settings.

A (Date) B (Formula) Result Explanation
2026/11/22 (Sun) =WEEKDAY(A2) 1 type omitted (1), so Sunday is 1
2026/11/22 (Sun) =WEEKDAY(A3, 2) 7 type 2 (Monday start), so Sunday is 7
2026/11/23 (Mon) =WEEKDAY(A4, 2) 1 type 2, so Monday is 1
2026/11/23 (Mon) =IF(WEEKDAY(A5, 2)>=6, "Weekend", "Weekday") Weekday Combines type 2 with IF to classify weekdays vs. weekends

Common Errors and Tips

  • Pitfall when referencing a blank cell: Referencing an empty cell with =WEEKDAY(A2) treats it as serial value 0 (Saturday, December 30, 1899), returning 7 (or 6 with type 2) instead of an error. To avoid marking empty rows as weekends, guard with =IF(A2="", "", WEEKDAY(A2, 2)).
  • #NUM! error: Occurs if the second argument (type) is an invalid number other than 1, 2, 3 (or extended types 11–17).
  • #VALUE! error: Occurs if the first argument is a text string that cannot be recognized as a date.

Frequently Asked Questions

Q. Which "type" is best in WEEKDAY for checking weekends?

A. Using type "2" assigns Monday = 1 through Saturday = 6 and Sunday = 7, so you can check for both Saturday and Sunday with a simple condition: "=WEEKDAY(A2, 2) >= 6".

Q. How do I display the day name (like "Mon" or "Tue") instead of a number?

A. To return the day of the week as text, use "=TEXT(A2, "ddd")" instead of WEEKDAY.