# EXCEL FUNCTIONS-WEEKDAY

## INTRODUCTION

WEEKDAY FUNCTION comes under the DATE AND TIME FUNCTIONS CATEGORY of functions in Excel.

WEEKDAY FUNCTION simply returns the DAY NUMBER of any date in a week.

This function is very simple but helpful in solving many tricky problems concerned with the date and time in Excel.

It is helpful if we need to find out the Week start date or Week end date or put any condition for the particular days of the week etc.

## PURPOSE OF WEEKDAY FUNCTION IN EXCEL

WEEKDAY FUNCTION returns the DAY of the Week for a given date by the integers from 1 to 7.

For example 1 for Sunday, 2 for Monday and so on.

## PREREQUISITES TO LEARN WEEKDAY FUNCTION

THERE ARE A FEW PREREQUISITES WHICH WILL ENABLE YOU TO UNDERSTAND THIS FUNCTION IN A BETTER WAY.

•  Basic understanding of how to use a formula or function.
•  Basic understanding of rows and columns in Excel.
• If we know the way Excel handles the DATES, the function becomes a bit easier to learn.
•  Of course, Excel software.

What Excel does? How to use formula in Excel?

## SYNTAX: WEEKDAY FUNCTION IN EXCEL

The Syntax for the WEEKDAY function in Excel is

=WEEKDAY(DATE SERIAL NUMBER, CODE FOR RETURN TYPE)
DATE SERIAL NUMBER is the serial number of the Date or the Date itself for which the day is needed to be found.CODE FOR RETURN TYPE is the code which will decide the day to be counted as 1 as the week is taken from the different days in different parts of the world.

## EXAMPLE:WEEKDAY FUNCTION IN EXCEL

### DATA SAMPLE

For the sake of understanding, let us find out the day number of different dates with different codes.

### STEPS TO USE WEEKDAY FUNCTION

Following table gives the description of the formula usage.

The Result is the output which tells the DAY NUMBER of the week on the given date. The formula used is the formula we used to find out the weekday.

The general steps are

• Select the cell where we want to find out the result.
• Put the given formula.
• The general format of the function is
• =WEEKDAY(ADDRESS OF THE DATE, MODE FROM THE ABOVE TABLE).

The result and the formula used for individual examples are given in the table below.