Difference between revisions of "Documentation/How Tos/Calc: NETWORKDAYS function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(12 intermediate revisions by 5 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 12: | Line 17: | ||
=== Example: === | === Example: === | ||
− | <tt>'''NETWORKDAYS("2008 | + | <tt>'''NETWORKDAYS("2008-09-05"; "2008-09-08")'''</tt> |
: returns <tt>'''2'''</tt>. 5Sep08 is a Friday and 8Sep08 is a Monday. The Friday and Monday are counted as working days; Saturday and Sunday are ignored. | : returns <tt>'''2'''</tt>. 5Sep08 is a Friday and 8Sep08 is a Monday. The Friday and Monday are counted as working days; Saturday and Sunday are ignored. | ||
− | <tt>'''NETWORKDAYS("2008 | + | <tt>'''NETWORKDAYS("2008-09-05"; "2008-09-08"; D1:D2)'''</tt> |
: where D1 contains 8Sep08 and D2 contains 25Dec08, returns <tt>'''1'''</tt>. 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). | : where D1 contains 8Sep08 and D2 contains 25Dec08, returns <tt>'''1'''</tt>. 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 <tt>'''NETWORKDAYS'''</tt> counts the first day of the period (it is inclusive); in contrast <tt>'''DAYS'''</tt> does not. |
− | ''' | + | |
− | + | {{SeeAlso|EN| | |
+ | * [[Documentation/How_Tos/Calc: WORKDAY function|WORKDAY]] | ||
+ | * [[Documentation/How_Tos/Calc: DAYS function|DAYS]] | ||
− | + | * [[Documentation/How_Tos/Calc: Date & Time functions#Date and Time overview|Date & Time overview]] | |
+ | |||
+ | * [[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]] | ||
+ | |||
+ | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
+ | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
+ | [[Category: Documentation/Reference/Calc/Date and Time functions]] |