How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (2024)

Method 1 – Generate a Sequence of Workdays

Generate a sequence of workdays using the WORKDAY function. The following are the steps to do that.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (1)

  • Insert a date in cell B5. Generate the sequence of working days from this date.
  • The generic formula for our task will be

=WORKDAY(date,1)

  • A consecutive sequence we are going to use 1 in the days field.
  • Write the formula in Excel.

=WORKDAY(B5,1)

  • Using the formula we found the next working date. We used Cell Reference in the formula.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (2)

  • Keep copying the formula to find the sequence you want.
  • Generate the weekdays of the working days using the following formula.

=TEXT(WEEKDAY(B5,1),"ddddd")

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (3)

  • The WORKDAY function generally identifies Saturday and Sunday as weekends (the US form). It returned Monday to Friday and then repeated.

Method 2 – Generate Workdays After Given Days

We can generate workdays from a date after any specific number of days.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (4)

  • We have two inputs, start date, and number of days, our formula will be:

=WORKDAY(start date, number of days)

  • Write the formula in Excel.

=WORKDAY(B5,C5)

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (5)

  • The formula uses Cell Reference. See, our start date was 02-Jul-2021, and the number of days was 4. The result is 08-Jul-2021.
  • See the difference between the two dates, they are not 4. As the name suggests, WORKDAY only produces working days of a week; it discards Saturday and Sunday from working days.
  • Copy the formula for the rest of the values.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (6)

Method 3 – Generate Next Working Days

Produce the next working day from a date using the WORKDAY function.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (7)

  • Find the next date we need to use 1 in our days field.

=WORKDAY(start_date,1)

  • Write the formula in Excel.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (8)

  • We found the next workdays from the provided date.
  • Do the same for the rest of the values.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (9)

Method 4 – Find Working Days in Excel Excluding Weekends and Holidays

  • We introduced a list of holidays to our dataset. The holidays are listed in B12:B14.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (10)

  • The derived date WORKDAY(start_date,1) matches in the holidays list that day will be eliminated from the working day and search for another workday.
  • The formula will be something like below

=WORKDAY(start_date,1,holidays)

  • Write the formula in Excel.

=WORKDAY(B5,7,$B$12:$B$14)

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (11)

  • We found the next working date. Using a similar dataset in the previous section, you can see that the result has been changed.
  • Earlier for 02-07-2021, our next working day was 05-07-2021, but now 05-07-2021 is the Holidays, and that’s why it was not counted as a workday. We have found 06-07-2021 as the next working day after 02-07-2021.
  • Do the same for the rest of the values.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (12)

  • You can see Holidays have an impact on the next working date.
  • Last two examples we have derived the very next working day, if you need after a certain amount just change the values of the days parameter. (In the above image we found the 7th working day)

Method 5 – Check Whether a Day Is a Holiday or a Working Day

Check whether a day is a holiday or a working day using the WORKDAY function.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (13)

  • Check we need to apply a condition statement. The IF function will be helpful for condition checks.
  • Our formula will be

=IF(WORKDAY(B5-1,1,$B$15:$B$17)=B5,"Working Day","Holiday")

  • Using date-1 in the start_day field of WORKDAY so that the function can eventually return that date.
  • We checked the derived date from our given date. If they match we set it to return Working Day, Holiday otherwise.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (14)

  • 01-07-2021 was listed in the Holidays and our formula identified it as a holiday. Do the same for the rest of the values.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (15)

We instructed you to write the formula just to perform the practice. The more you practice the more skillful you will be.

Method 6 – Excel WORKDAY Function with Hours

  • Specify Start Time, Total Hours, Office Hours, and Holidays (if any). We have specified all these in the following dataset.
  • Apply the following formula in the End Time cell:

=WORKDAY(B5,INT(C5/8)+IF(TIME(HOUR(C5),MINUTE(C5),SECOND(C5))+TIME(MOD(C5,8),MOD(MOD(C5,8),1)*60,0)>

G6,1,0),$I$5:$I$5)+IF(TIME(HOUR(B5),MINUTE(B5),SECOND(B5))+TIME(MOD(C5,8),MOD(MOD(C5,8),1)*60,0)>G6,F6

+TIME(HOUR(B5),MINUTE(B5),SECOND(B5))+TIME(MOD(C5,8),MOD(MOD(C5,8),1)*60,0)-G6,TIME(HOUR(B5),MINUTE(B5),SECOND(B5))

+TIME(MOD(C5,8),MOD(MOD(C5,8),1)*60,0))

Credit goes to extendoffice for this formula.

  • Get to see the result immediately.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (16)

Method 7 – Combine RANDBETWEEN Function with WORKDAY to Generate Random Working Days Between Two Days

  • Use the following formula once to get a random working day.

=WORKDAY(RANDBETWEEN($B$5,$C$5)-2,1,$E$5)

  • Copy the formula.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (17)

Quick Notes

You need to keep several things in mind while using any function, so do for WORKDAY, here are some honorable mentions.

  • Ways to Insert Dates in WORKDAY

You can insert dates in WORKDAY in various ways. Previously we have provided dates using Cell Reference.

♠ You can input your dates directly, as in the image below.

=WORKDAY("3-08-2021",1)

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (18)

We have inserted the date. You might have understood the reason for using 1. Yes, we are aiming to produce the next day.

♠ You can input the date using the DATE function.

=WORKDAY(DATE(2021,3,8),7)

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (19)

We have used DATE inside the WORKDAY function. This time we aim for the 7th working day from the given date.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (20)

♠ If you want to find the next ( or any other, change the day value) working day from the current day, feel free to use the TODAY function.

The TODAY function returns the present-day dynamically in Excel.

=WORKDAY(TODAY(),10)

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (21)

We have inserted the TODAY function within WORKDAY and 10 in the day parameter. it returned our desired future work date (see the image below).

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (22)

We are creating this article on 3 August 2021; the 10th working day from this day is 17 August 2021.

  • Common Problems

#VALUE! Error:

If you provide a value in the function which is not a valid date then this error will appear.

Insert a text string within WORKDAY.

To use Cell Reference we have written hello in a cell.

Insert the string in the WORKDAY function.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (23)

This will return a #VALUE! error. Since the string is not a valid date.

See another example. This time use a date.

Use the function for this date.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (24)

We have written the date in yyyy-dd-mm format. Which is not a valid date format in Excel in the US region. So, it returned the error.

#NUM! Error:

This error occurs if the supplied start_date and/or the supplied days argument results in an invalid date.

How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (25)

We have inserted 03-08-2021 in the function. The function cannot detect it properly and so returns an invalid date. The #NUM! error occurred.

Download Practice Workbook

You are welcome to download the practice workbook from the link below.

Use of WORKDAY Function.xlsx

Excel WORKDAY Function: Knowledge Hub

  • How to Find Last Business Day of Month in Excel
  • How to Calculate Working Days Excluding Sundays in Excel
  • How to Calculate Working Days in a Month in Excel

<< Go Back to Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
How to Use WORKDAY Function in Excel: 7 Suitable Methods - ExcelDemy (2024)

References

Top Articles
Mlb Draft Tracket
Cr Laurence Phoenix
Frases para un bendecido domingo: llena tu día con palabras de gratitud y esperanza - Blogfrases
UPS Paketshop: Filialen & Standorte
Mackenzie Rosman Leaked
Lighthouse Diner Taylorsville Menu
9192464227
Mama's Kitchen Waynesboro Tennessee
50 Meowbahh Fun Facts: Net Worth, Age, Birthday, Face Reveal, YouTube Earnings, Girlfriend, Doxxed, Discord, Fanart, TikTok, Instagram, Etc
Is Sportsurge Safe and Legal in 2024? Any Alternatives?
Achivr Visb Verizon
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Builders Best Do It Center
Bc Hyundai Tupelo Ms
Beau John Maloney Houston Tx
Maplestar Kemono
How Much Are Tb Tests At Cvs
Slope Tyrones Unblocked Games
Aberration Surface Entrances
Charter Spectrum Store
Air Force Chief Results
UPS Store #5038, The
BMW K1600GT (2017-on) Review | Speed, Specs & Prices
Air Quality Index Endicott Ny
SN100C, An Australia Trademark of Nihon Superior Co., Ltd.. Application Number: 2480607 :: Trademark Elite Trademarks
Jordan Poyer Wiki
TeamNet | Agilio Software
Joann Fabrics Lexington Sc
Www Mydocbill Rada
Craftsman Yt3000 Oil Capacity
How to Use Craigslist (with Pictures) - wikiHow
Bridgestone Tire Dealer Near Me
Rust Belt Revival Auctions
Goodwill Houston Select Stores Photos
Wednesday Morning Gifs
Staar English 1 April 2022 Answer Key
Crystal Mcbooty
Jewish Federation Of Greater Rochester
R Nba Fantasy
Rochester Ny Missed Connections
Gifford Christmas Craft Show 2022
Tryst Houston Tx
The All-New MyUMobile App - Support | U Mobile
2007 Jaguar XK Low Miles for sale - Palm Desert, CA - craigslist
Fool's Paradise Showtimes Near Roxy Stadium 14
Jamesbonchai
Luciane Buchanan Bio, Wiki, Age, Husband, Net Worth, Actress
Parent Portal Pat Med
Courses In Touch
Blue Beetle Showtimes Near Regal Evergreen Parkway & Rpx
Leland Westerlund
Ciara Rose Scalia-Hirschman
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 5396

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.