The WEEKDAY Function in Excel

by Gregory on September 2, 2010

WEEKDAY Arguments Excel 2010Excel 2010 has new return_type arguments for the WEEKDAY Function. How useful they are is debatable, but you never know when you might come across a particular need.

The WEEKDAY Function in has two arguments: serial_number and return_type. The serial_number argument is simply a number that represents a date. The return_type argument is optional, and assumed to be 1 if omitted.

Versions prior to Excel 2010 have only the first three return_type arguments: 1,2 3.  The new arguments are 11-17, representing differing combinations for the starting day of the week.

The WEEKDAY Function returns an integer value 1-7, based upon the day of the week, with the exception of return_type 3 that returns 0-6.

The Function Arguments dialog box doesn’t show the new arguments.

WEEKDAY Function Arguments Dialog Box

However in Excel 2010, when you enter the WEEKDAY Function into a cell, they are shown as you enter the second argument.

WEEKDAY Return Type Excel 2010

Weekly Reporting and the WEEKDAY Function

I’ve only used the WEEKDAY Function with regards to reporting data, and then only sporadically.

Companies normally have weekly reporting requirements. However, while every week has seven days, there are two important distinctions. First is the start and end days of each week. Some companies use a Sunday-Saturday week, others a Monday-Sunday. These two are the most common, although I came across one company that had a Saturday-Friday reporting week.

The second distinction in weekly reporting is what day is used to represent the entire week. In the USA it’s common to use a week-ending date for weekly reports, while in Europe a week-commencing date is used quite frequently.

I won’t go into specific uses of the WEEKDAY Function for reporting in this post, but the two distinctions mentioned for weekly reporting make it a handy function to know.

Related Posts Plugin for WordPress, Blogger...
Bill Rouse December 19, 2012 at 11:58 am

I’m trying to make a formula that calculates days late on shipped orders without adding Sat & Sun in the calculation. IE: Order Due Date is 12-14-12 and was shipped on
12-17-12. Order is 1 day late.

Thanks, Bill

Gregory December 19, 2012 at 4:04 pm

Assume Order Due is in cell A2 and the value is 12-14-12. Assume Order Ship is in cell B2 and the value is 12-17-12. The formula for Days Late, which I put in cell C2, is =NETWORKDAYS(A2,B2)-1 and gives the result of 1. The NETWORKDAYS function excludes weekend days. You have to subtract 1 because if the start and end dates are the same the function returns a 1. So if Order Due and Order Ship are both 12/14/12 then the Days Late value is zero.

After adding that formula you normally have to change the cell formatting back to General. You’ll know to change the cell formatting if the answer is 1-1-00.

Cathy March 25, 2013 at 2:51 pm

I have a start date and a completion date which i would like to calculate Monday to Friday days only between the two dates. Start date 18/03/2013 (Cell R2) i would like to calculate Monday to Friday from this date in R2 to be the completion date in cell W2. Please help 🙂

Gregory March 26, 2013 at 5:40 am

Monday to Friday days only are weekdays, which are associated with the NETWORKDAYS Function. Per Excel Help: (It) Returns the number of whole working days between start_date and end_date.

Your formula is:


John March 30, 2013 at 5:43 am

I want to use weekday to work out a shift pattern. Is there a formula where I can just put in the shift pattern and switch the number (week start day) so that I can work out the optimum shift pattern that gives even weekend work days between shifts.

Gregory March 30, 2013 at 11:20 am

Check out the Help section of the WEEKDAY function where the second argument can change the week start day for the formula. In later versions of Excel for Windows (2007, 2010, 2013) you can cycle through the entire week for start days. In Excel for Mac you are restricted to the following:

1 or omitted returns numbers 1 (Sunday) through 7 (Saturday). Behaves like earlier versions of Excel.
2 returns numbers 1 (Monday) through 7 (Sunday).
3 returns numbers 0 (Monday) through 6 (Sunday).

Mark Rohde April 19, 2013 at 8:48 am

I report sales by normal sales day (M-F) but occasionally get an invoice on weekends which throws off average days sales, etc. I would like to be able to determine if the date is a Sat or Sun and if so make it a Friday (if Sat) or Monday (if Sun) BUT – there’s always a but!- never change the calendar month (so Sat would be Monday if it is the 1st and Sunday would be Friday if Monday is the 1st.) Confused yet?

Gregory July 7, 2013 at 6:02 pm

Not confuse, but busy. Yet this bugs me so I spent some time to figure it out. Assume you have date in cell A2. Here is the formula you are looking for:


I tested it and it works beautifully.

Bianca May 21, 2013 at 11:27 pm

I have list of dates in Column C, I would like Column B to show me the week ending date (Sunday) So I can select the individual week. At present I can only find a formula that gives me the week number rather than a day & date.

Gregory May 27, 2013 at 1:16 pm

The formula you are looking for is:


which will give you a week ending date that is always on Sunday.

Bianca May 27, 2013 at 5:28 pm

Thank you! This is exactly what I needed. 🙂

Bianca May 27, 2013 at 6:11 pm

Can I also use a similar formula to show the date as the first of each month so I can group them by month?

Gregory May 27, 2013 at 6:28 pm

You can use this to show the date of the first day of the month.


Sarah June 25, 2013 at 6:26 am

I want to put a schedule together starting on Monday, June 24th, 2013 (column A5), then I want to add one weekday in (A7). I cannot get the formula to work out.

Gregory June 27, 2013 at 8:35 pm

I don’t know what your formula is, but if you put =A5+1 in cell A7 you will get Tuesday, June 25th, 2013.

Sarah June 28, 2013 at 5:08 am

That is correct, but if A% is a Friday, June 28th, and I use the formula =A5+1 in A7, I will get Saturday, June 29th, but I want it to = Monday, July 1st.

Mujeeb July 4, 2013 at 8:11 am

Hi All,
I have one query could you please help me?
In Excel A column has the date and B column comes the day autommatically so how can i will get weeknum in C column in. Please assist.

Gregory July 7, 2013 at 5:22 pm

The week number can be obtained by using the WEEKNUM function in Column C. Assume 7/7/13 is in cell A1. Then if you enter =WEEKDAY(A1) into cell C1 the result is 28, which represents the 28th week of the year. January 1 resides in the first week of the year in this function.

This function also assumes that weeks start on Sunday and end on Saturday. You can change that to start on Monday and end on Sunday, by adding a 2 to the second argument. Given the previous example, the formula would change to be =WEEKNUM(A1,2) and would return the value 27.

Comments on this entry are closed.

Previous post:

Next post: