The Excel WEEKDAY Function returns the day of the week as the number

WEEKDAY Function: A Brief

The Excel WEEKDAY Function is used to return a number representing the day of the week for a specific date. This function is very helpful when you want to identify whether a date falls on a weekday or weekend or when automating schedules based on days.

Objective

Value Returned by function

Aim to return a numerical weekday.

WEEKDAY Function will return a number of the day of the week from the given input date.

WEEKDAY Function: A Syntax

=WEEKDAY(date_value, [return_type])

Return_type

Day

1

Sunday

2

Monday

3

Tuesday

4

Wednesday

5

Thursday

6

Friday

7

Saturday

Excel WEEKDAY function can number days of the week, based on the return_type argument.

The return_type is optional and defaults to 1. It determines how the days of the week are numbered and which day is considered the first day. Each return_type code has its own mapping, showing the numeric result for each day and the starting day of the week in that scheme.

Note: The WEEKDAY function in Excel will still return a result even if the date cell is empty. In such cases, it defaults to zero or may return 1, depending on how it’s used in the formula.

Basic Example:

This function can be very helpful if you are managing a small event calendar in Excel. Take a look at the below example.

From the example above, you can easily understand the basic use of the WEEKDAY function. I used the TEXT function along with the day number returned by WEEKDAY to show the day name (like Monday, Tuesday, etc.).

Using WEEKDAY Function with Nested Functions:

The explanation of the above examples are,

That’s it.

–Narendhiran Vijayakumar. This tutorial is originally published on How to use Excel Weekday Function?