WEEKDAY Function in Excel – Get Week Day Number

In this blog, we would learn about the WEEKDAY function in excel. We would unlock the objective and purpose of the WEEKDAY function, formula syntax and arguments, and some examples of the WEEKDAY excel function.

So let us begin 😎

Purpose of Excel WEEKDAY Function

The =WEEKDAY formula in excel is used to find the day number of the week for a specified date. The output of this formula is a day number that ranges between 1 to 7 (the seven days of the week).

Syntax and Argument

=WEEKDAY(serial_number, [return_type])

There are two arguments of this excel formula, as can be seen in the above syntax.

  • serial_number – In this argument, specify the date or a serial number of the date.
  • [return_type] – The return_type is an optional argument of the WEEKDAY excel formula. This argument allows you to choose the starting point of the week. For example, you can instruct Excel to start the week by Monday, or by Thursday, and so on. If the starting point is Thursday then, Thursday = 1, Friday = 2, Saturday = 3, so on and so forth.

Since the ‘return_type’ argument is an optional one, therefore if you do not use it, excel by default considers Sunday = 1, Monday = 2, and so on.

Simple Example of WEEKDAY Excel Function

Let us consider today’s date which is 11/02/2021 (Thursday). To find the day of the week for today, use the following formula =WEEKDAY(“11/02/2021”)

As a result, excel would return the weekday number as 5.

WEEKDAY Formula Example

Make sure that you specify the date value within double-quotes.

Similarly, weekday for the date 12/02/2021 is ‘6’ (see image above).

Remember that, since we have not specified any value for return_type, excel considers Sunday = 1 (by default).

Infographic - WEEKDAY Function Formula in Excel

Do Not Miss These Points

  • Instead of entering the date value manually in the formula (within double-quotes), you may also give reference to some other cell containing the date. See the image below.
WEEKDAY Function with reference to other cell
  • In the above example, the return_type used is ‘2’ which means that starting day is Monday (Monday = 1). See the below image for other acceptable return_type:
List of Return_Types of WEEKDAY Function
  • You can even use the serial number of the date instead of the date as a function input argument. The serial number of the date is nothing but a whole number by which excel understands and stores a date. For example, the date serial number ‘1’ denotes 01/01/1990. Similarly, ‘44238’ represents 11/02/2021.
WEEKDAY Function using Date serial number

This brings us to the end of this tutorial on WEEKDAY function in Excel. 🙂

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.