Google Sheets WEEKDAY function

Returns a date’s day of the week as a number. It has the same name in Spanish Sheets.

Syntax

English Sheets

=WEEKDAY(date, [type])

Spanish Sheets (Mexico locale)

=WEEKDAY(fecha, [tipo])

Spanish Sheets (Spain, Latin America)

=WEEKDAY(fecha; [tipo])

ArgumentWhat it is
dateThe date.
typeoptional1 (Sunday = 1, default), 2 (Monday = 1) or 3 (Monday = 0).

Example

WEEKDAY(date, 2) returns the day of the week from 1 (Monday) to 7 (Sunday), so a value above 5 is a weekend. Spanish Sheets keeps the name WEEKDAY; DIASEM is the Spanish Excel name.

=IF(WEEKDAY(A2,2)>5,"Weekend","Weekday")

Common mistake

Spanish Sheets keeps the name WEEKDAY (DIASEM is the Spanish Excel name). Use type 2 so weekends are >5.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice WEEKDAY

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

WEEKDAY

WEEKDAY(date, 2) returns the day of the week from 1 (Monday) to 7 (Sunday), so a value above 5 is a weekend. Spanish Sheets keeps the name WEEKDAY; DIASEM is the Spanish Excel name.

In B2, show "Weekend" if the date is a Saturday or Sunday; otherwise "Weekday".

B2
ABC
1DateDay type
210/30/2026
310/31/2026
411/01/2026
511/02/2026
611/07/2026
711/11/2026
8

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is WEEKDAY called in Spanish?
It has the same name: WEEKDAY. Functions that started in Google Sheets keep their English name even in a Spanish spreadsheet. What changes is the separator: Spain and much of Latin America separate arguments with semicolons.
Why does WEEKDAY use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common WEEKDAY mistake?
Spanish Sheets keeps the name WEEKDAY (DIASEM is the Spanish Excel name). Use type 2 so weekends are >5.