Difference between revisions of "Manuals/calci/WORKDAY"
Jump to navigation
Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...") |
|||
Line 1: | Line 1: | ||
− | + | =WORKDAY(SD, days, holidays)= | |
− | + | where, | |
+ | *<math>SD</math> represents the starting date, | ||
+ | *<math>days</math> represents the number of nonweekend and nonholiday days before or after start date, and | ||
+ | *<math>holidays</math> is an optional list of one or more dates to exclude from the working days. | ||
− | + | WORKDAY() displays the working day before or after the mentioned number of days from the starting date, excluding the weekend days and holidays. | |
− | |||
− | |||
− | + | == Description == | |
− | + | WORKDAY(SD, days, holidays) | |
− | |||
− | |||
− | |||
− | |||
− | < | + | *<math>SD</math> and <math>holidays</math> should be entered either in 'date format' or 'dates returned using formulas'. |
+ | *If date values are invalid, Calci displays #N/A error message. | ||
+ | *Argument <math>days</math> can be positive or negative. | ||
+ | *For positive days, Calci calculates working day after the mentioned number of days from starting date. For negative days, Calci calculates the working day before the mentioned days before starting date. | ||
− | + | == Examples == | |
− | |||
− | |||
− | + | Consider the following example that shows the use of WORKDAY function: | |
− | + | <div id="2SpaceContent" class="zcontent" align="left"> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <div id=" | ||
{| id="TABLE3" class="SpreadSheet blue" | {| id="TABLE3" class="SpreadSheet blue" | ||
|- class="even" | |- class="even" | ||
+ | | class=" " | 6/1/2014 | ||
+ | | class=" " | 3/1/2014 | ||
| class=" " | | | class=" " | | ||
− | + | ||
− | |||
− | |||
− | |||
|- class="odd" | |- class="odd" | ||
− | | class=" " | | + | | class="sshl_f" | 140 |
− | + | | class=" " | -30 | |
− | | class=" " | | + | | class=" " | |
− | | class=" | + | |
− | |||
|- class="even" | |- class="even" | ||
− | | class=" | + | | class=" " |8/4/2014 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| class=" " | | | class=" " | | ||
| class=" " | | | class=" " | | ||
− | + | ||
− | |||
− | |||
|- class="odd" | |- class="odd" | ||
− | | class=" " | | + | | class=" " | 9/30/2014 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| class=" " | | | class=" " | | ||
| class=" " | | | class=" " | | ||
|} | |} | ||
− | + | =WORKDAY(A1,A2): Calculates next working day 140 days after date mentioned in A1. Weekend days are excluded. Displays '''12/12/2014''' as a result. | |
− | + | =WORKDAY(A1,A2,A3:A4):Calculates next working day 140 days after date mentioned in A1 and holidays in A3, A4. Weekend days are excluded. Displays '''12/16/2014''' as a result. | |
+ | =WORKDAY(B1,B2) : Calculates working day 30 days before the starting date mentioned in B1. Displays '''01/20/2014''' as a result. | ||
+ | =WORKDAY(DATE(2013,6,1),60): Calculates next working day 60 days after mentioned date. Displays '''8/23/2013''' as a result. | ||
+ | |||
+ | == See Also == | ||
+ | |||
+ | *[[Manuals/calci/NETWORKDAYS | NETWORKDAYS]] | ||
+ | *[[Manuals/calci/WEEKDAY | WEEKDAY]] | ||
+ | |||
+ | == References == | ||
+ | |||
+ | *[http://en.wikipedia.org/wiki/Date_format_by_country Date Formats] | ||
+ | *[http://en.wikipedia.org/wiki/Calendar_date Date] |
Revision as of 16:17, 4 February 2014
WORKDAY(SD, days, holidays)
where,
- represents the starting date,
- represents the number of nonweekend and nonholiday days before or after start date, and
- is an optional list of one or more dates to exclude from the working days.
WORKDAY() displays the working day before or after the mentioned number of days from the starting date, excluding the weekend days and holidays.
Description
WORKDAY(SD, days, holidays)
- and should be entered either in 'date format' or 'dates returned using formulas'.
- If date values are invalid, Calci displays #N/A error message.
- Argument can be positive or negative.
- For positive days, Calci calculates working day after the mentioned number of days from starting date. For negative days, Calci calculates the working day before the mentioned days before starting date.
Examples
Consider the following example that shows the use of WORKDAY function:
6/1/2014 | 3/1/2014 | |
140 | -30 | |
8/4/2014 | ||
9/30/2014 |
=WORKDAY(A1,A2): Calculates next working day 140 days after date mentioned in A1. Weekend days are excluded. Displays 12/12/2014 as a result. =WORKDAY(A1,A2,A3:A4):Calculates next working day 140 days after date mentioned in A1 and holidays in A3, A4. Weekend days are excluded. Displays 12/16/2014 as a result. =WORKDAY(B1,B2) : Calculates working day 30 days before the starting date mentioned in B1. Displays 01/20/2014 as a result. =WORKDAY(DATE(2013,6,1),60): Calculates next working day 60 days after mentioned date. Displays 8/23/2013 as a result.