How to Use WEEKDAY Function in Excel

Nov 06, 2020 • edited Nov 07, 2020

How to Use WEEKDAY Function in Excel

Learn how to get the day of the week of a date in Excel and how to get the number of weekdays or workdays days between two dates.

Weekday function

1. The WEEKDAY function in Excel returns a number from 1 (Sunday) to 7 (Saturday) representing the day of the week of a date. Apparently, 12/18/2017 falls on a Monday.

Weekday Function in Excel

2. You can also use the TEXT function to display the day of the week.

Text Function

3. Or create a custom date format (dddd) to display the day of the week.

Custom Date Format

Networkdays function

1. The NETWORKDAYS function returns the number of weekdays (weekends excluded) between two dates.

Networkdays Function

2. If you supply a list of holidays, the NETWORKDAYS function returns the number of workdays (weekends and holidays excluded) between two dates.

Workdays

The calendar below helps you understand the NETWORKDAYS function.

Calendar

3. Dates are stored as numbers in Excel and count the number of days since January 0, 1900. Instead of supplying a list, supply an array constant of the numbers that represent these dates. To achieve this, select E1:E2 in the formula and press F9.

Array Constant

Workday function

The WORKDAY function is (almost) the opposite of the NETWORKDAYS function. It returns the date before or after a specified number of weekdays (weekends excluded).

Workday Function

Note: the WORKDAY function returns the serial number of the date. Apply a Date format to display the date.

The calendar below helps you understand the WORKDAY function.

Calendar

Again, if you supply a list of holidays, the WORKDAY function returns the date before or after a specified number of workdays (weekends and holidays excluded).

#Tutorial#How To#Functions#Date & Time

How to use Vlookup function in Excel

How to use Weighted Average in Excel