Date & Time All versions ◉ 25 views

=WORKDAY()

Returns a number that represents a date that is the indicated number of working days before or after a date (the starting date). Working days exclude weekends and any dates identified as holidays. Use WORKDAY to exclude weekends or holidays when you calculate invoice due dates, expected delivery times, or the number of days of work performed.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=WORKDAY(start_date, days, [holidays])
Hover argument names in the table for details.
Output typeDate
Popularity45 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =WORKDAY() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download WORKDAY.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
start_date Date Required A date that represents the start date.
days Number Required The number of nonweekend and nonholiday days before or after start_date. A positive value for days yields a future date; a negative value yields a past date.
holidays Range Optional An optional list of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays. The list can be either a range of cells that contain the dates or an array constant of the serial numbers that represent the dates.

▣ Examples

▦ Data
CellValue
A2 10/1/2008
B2 Start date
A3 151
B3 Days to completion
A4 11/26/2008
B4 Holiday
A5 12/4/2008
B5 Holiday
A6 1/21/2009
B6 Holiday
A7 10/1/2008
B7 Start date
A8 151
B8 Days to completion
A9 11/26/2008
B9 Holiday
A10 12/4/2008
B10 Holiday
A11 1/21/2009
B11 Holiday
Date 151 workdays from the start date (4/30/2009) =WORKDAY(A2,A3)
Result: 4/30/2009
Date 151 workdays from the start date, excluding holidays (5/5/2009) =WORKDAY(A2,A3,A4:A6)
Result: 5/5/2009

§ Remarks

  • Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
  • If any argument is not a valid date, WORKDAY returns the #VALUE! error value.
  • If start_date plus days yields an invalid date, WORKDAY returns the #NUM! error value.
  • If days is not an integer, it is truncated.

✦ Tips

  • To calculate the serial number of the date before or after a specified number of workdays by using parameters to indicate which and how many days are weekend days, use the WORKDAY.INTL function.
  • Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
  • Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
  • If days is not an integer, it is truncated.

⚠ Common Errors

#VALUE! If any argument is not a valid date, WORKDAY returns the #VALUE! error value.
Fix: Check the dates and the holiday range
#NUM! If start_date plus days yields an invalid date, WORKDAY returns the #NUM! error value.
Fix: مقدار days را کاهش دهید یا تاریخ شروع متفاوتی انتخاب کنید تا تاریخ حاصل معتبر باشد.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.