Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Calculating the First Business Day of the Month.

Calculating the First Business Day of the Month

Written by Allen Wyatt (last updated October 3, 2020)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


Dan is setting up a worksheet for use in his company and needs a way to calculate the first business day of a calendar month. He knows how to calculate the first day of a month, but that day could possibly fall on a weekend or on a holiday.

The easiest way to calculate the first weekday of a given month is to use the WORKDAY function, in this way:

=WORKDAY(EOMONTH(A1,-1), 1)

This formula finds the first weekday of the month of whatever date is in cell A1. The EOMONTH function returns the last day of the month prior to the date in cell A1, and then the WORKDAY function returns the first weekday in the following month.

The function is put together like this (using EOMONTH) because WORKDAY is a bit quirky; it assumes that the first parameter is a valid workday. This means that it doesn't check whether the date used in the parameter falls in the Monday through Friday work week. By forcing the parameter to be a day before the month in which you want to determine the first workday and setting the second parameter to 1, the function returns the first actual weekday for the desired month.

The WORKDAY function also allows you to optionally specify that holidays should be taken into account. The easiest way to do this is to set up a list of holiday dates, in a cell range, and then name that range. (How you name a range is discussed in other issues of ExcelTips.) If you give the range a name such as MyHolidays, then you can use the following version of the formula:

=WORKDAY(EOMONTH(A1,-1), 1, MyHolidays)

Here's a neat trick if you want to calculate the beginning workday for any given month in a year. Assume that cell A1 contains a year, such as 2020, and that cell A2 contains a month number, 1 through 12, representing the month for which you want the beginning workday. You can then use this formula to get the desired date:

=WORKDAY(DATE(A1,A2,0), 1, MyHolidays)

The way the DATE function is used in this formula returns the last day of the month prior to the month and year specified in cells A2 and A1. The second parameter for WORKDAY (1) then moves forward to the next workday. MyHolidays (as before) accounts for any holidays that may occur in that month.

The WORKDAY function works just fine for dates within the US, but it gets a bit dicier if you need workdays in other countries. In that case, try using the WORKDAY.INTL function (introduced starting with Excel 2010) to see if it will do the trick for you. It is much more flexible in how it allows the designation of weekends and holidays.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10201) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Calculating the First Business Day of the Month.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Non-breaking Em Dashes

Need an em dash to be "sticky" on both ends of the dash? Word doesn't provide such formatting, but there are a few ...

Discover More

Printing Custom Properties

Do you use custom document properties? They can be very helpful, but sometimes hard to get at. This tip shows a way you ...

Discover More

Starting the Equation Editor

The Equation Editor is a tool you can use to create complex mathematical formulas and insert them in your documents. ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Finding the Dates for Minimums and Maximums

If you use Excel to maintain a collection of data, you may need to find information in one column based on information in ...

Discover More

Returning Nothing If Two Values are Empty

Excel includes a large number of functions that can be used in evaluating the data in a worksheet. In this tip you learn ...

Discover More

Using a Single Digit for a Year

Excel works very well with dates and times. One thing you cannot do, however, is to create a custom format that displays ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 0?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.