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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Automated text replacement %s)
m
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE: NETWORKDAYS function}}
 +
{{Documentation/CalcFunc DateTimeTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_WORKDAY_function
 +
|NextPage=Documentation/How_Tos/Calc:_DAYS_function
 +
}}__NOTOC__
  
 
== NETWORKDAYS ==
 
== NETWORKDAYS ==
Line 21: Line 26:
 
* Note that <tt>'''NETWORKDAYS'''</tt> counts the first day of the period (it is inclusive); in contrast <tt>'''DAYS'''</tt> does not.
 
* Note that <tt>'''NETWORKDAYS'''</tt> counts the first day of the period (it is inclusive); in contrast <tt>'''DAYS'''</tt> does not.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: WORKDAY function|WORKDAY]]
 
* [[Documentation/How_Tos/Calc: WORKDAY function|WORKDAY]]
 
* [[Documentation/How_Tos/Calc: DAYS function|DAYS]]
 
* [[Documentation/How_Tos/Calc: DAYS function|DAYS]]
Line 31: Line 36:
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
[[Category: Documentation/Reference/Calc]]
+
[[Category: Documentation/Reference/Calc/Date and Time functions]]

Latest revision as of 13:57, 30 January 2024



NETWORKDAYS

Returns the number of workdays between two dates.

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

Syntax:

NETWORKDAYS(startdate; enddate; hols_range)

returns the number of workdays between startdate and enddate (inclusive).
Saturday and Sunday are assumed to be non-working days. hols_range (optional) is a range containing dates of other non-working days.

Example:

NETWORKDAYS("2008-09-05"; "2008-09-08")

returns 2. 5Sep08 is a Friday and 8Sep08 is a Monday. The Friday and Monday are counted as working days; Saturday and Sunday are ignored.

NETWORKDAYS("2008-09-05"; "2008-09-08"; D1:D2)

where D1 contains 8Sep08 and D2 contains 25Dec08, returns 1. 5Sep08 is a Friday which is a working day; Saturday and Sunday are ignored; 8Sep08 is a Monday but is specified as a holiday (in cell D1).

Issues:

  • Note that NETWORKDAYS counts the first day of the period (it is inclusive); in contrast DAYS does not.



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