Difference between revisions of "Documentation/How Tos/Calc: WORKDAY function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
|booktitle=<div style="padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;">CALC FUNCTIONS</div>
 
|booktitle=<div style="padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;">CALC FUNCTIONS</div>
 
|ShowParttitle=block|parttitle=[[Documentation/How_Tos/Calc:_Date_%26_Time_functions|<div  style="font-size: 140%;">Date & Time Functions]]
 
|ShowParttitle=block|parttitle=[[Documentation/How_Tos/Calc:_Date_%26_Time_functions|<div  style="font-size: 140%;">Date & Time Functions]]
|ShowNextPage=block|NextPage=Documentation/How_Tos/Calc:_WORKDAY_function
+
|ShowNextPage=block|NextPage=Documentation/How_Tos/Calc:_NETWORKDAYS_function
|ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_EOMONTH_function
+
|ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_EDATE_function
 
|ShowPrevPart=block|PrevPart=Documentation/How_Tos/Calc:_Database_functions
 
|ShowPrevPart=block|PrevPart=Documentation/How_Tos/Calc:_Database_functions
 
|ShowNextPart=block|NextPart=Documentation/How_Tos/Calc:_Financial_functions
 
|ShowNextPart=block|NextPart=Documentation/How_Tos/Calc:_Financial_functions
Line 57: Line 57:
 
: where D1 contains 8Sep08 and D2 contains 25Dec08, returns the date-time serial number for 9Sep08. The 8Sep08 is specified as a holiday.
 
: where D1 contains 8Sep08 and D2 contains 25Dec08, returns the date-time serial number for 9Sep08. The 8Sep08 is specified as a holiday.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: NETWORKDAYS function|NETWORKDAYS]]
 
* [[Documentation/How_Tos/Calc: NETWORKDAYS function|NETWORKDAYS]]
 
* [[Documentation/How_Tos/Calc: EDATE function|EDATE]]
 
* [[Documentation/How_Tos/Calc: EDATE function|EDATE]]

Revision as of 07:22, 17 July 2018


WORKDAY

Returns a date a given number of workdays away.

This function is only available if the Analysis AddIn is installed.

Syntax:

WORKDAY(startdate; days; hols_range)

returns the date that is days workdays after the given date startdate.
days is a number (which may be negative to find a date before startdate).
Saturday and Sunday are assumed to be non-working days. hols_range (optional) is a range containing dates of other non-working days.

Example:

WORKDAY("2008-09-05"; 1)

returns the date-time serial number for Monday 8Sep08. 5Sep08 is a Friday.

WORKDAY("2008-09-05"; 1; D1:D2)

where D1 contains 8Sep08 and D2 contains 25Dec08, returns the date-time serial number for 9Sep08. The 8Sep08 is specified as a holiday.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_WORKDAY_function&oldid=243323"
Views
Personal tools
Navigation
Tools