summaryrefslogtreecommitdiffstats
path: root/source/text/scalc/01/func_workday.intl.xhp
blob: e79d023af6c34e23756f99a202cdcfab0f3a262d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->

<meta>
  <topic id="textscalc01func_workdaysxml">
    <title id="tit" xml-lang="en-US">WORKDAY.INTL</title>
    <filename>/text/scalc/01/func_workday.intl.xhp</filename>
  </topic>
</meta>
<body>
<section id="workdays">
<bookmark xml-lang="en-US" branch="index" id="bm_id231020162341219565">
  <bookmark_value>WORKDAY.INTL function</bookmark_value>
</bookmark>

<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_WORKDAY_MS" id="bm_id231020162348499245" localize="false"/>

<h2 id="hd_id231020162348002143"><variable id="workdaysintl"><link href="text/scalc/01/func_workday.intl.xhp">WORKDAY.INTL</link></variable></h2>
<paragraph id="par_id23102016234837285" role="paragraph" xml-lang="en-US"><ahelp hid=".">Returns the date calculated from a start date with a specific number of work days, before or after the start date. The calculation can include week-ends and holidays as non-working days.</ahelp></paragraph>
</section>
<embed href="text/scalc/00/avail_release.xhp#4.3"/>
<embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
<paragraph id="par_id241020160008306838" role="code" xml-lang="en-US">WORKDAY.INTL(StartDate; Days [; Weekend [; Holidays]])</paragraph>
<paragraph id="par_id241020160008308885" role="paragraph" xml-lang="en-US"><emph>StartDate</emph>: is the date from when the calculation is carried out.</paragraph>
<paragraph id="par_id241020160008305329" role="paragraph" xml-lang="en-US"><emph>Days</emph> is the number of workdays. Positive value for a result after the start date, negative value for a result before the start date.</paragraph>
<embed href="text/scalc/01/common_func_workdaysintl.xhp#embed_workdays_intl"/>
<embed href="text/scalc/01/04060102.xhp#datenumberinfo"/>
<embed href="text/scalc/01/04060102.xhp#datenumberwarn"/>
<embed href="text/scalc/01/common_func.xhp#sectionexample"/>
<paragraph id="par_id241020160012177196" role="paragraph" xml-lang="en-US">What date comes 20 workdays after December 13, 2016? Enter the start date in C3 and the number of workdays in D3.</paragraph>
<paragraph id="par_id241020160012178429" role="paragraph" xml-lang="en-US">The weekend parameter (number) may be left blank or defined as 1 for default weekend (non-working days) – Saturday and Sunday.</paragraph>
<paragraph id="par_id241020160012172125" role="paragraph" xml-lang="en-US">Cells F3 to J3 contain five (5) holidays for Christmas and New Year in date format: December 24, 2016; December 25, 2016; December 26, 2016; December 31, 2016; and January 1, 2017.</paragraph>
<paragraph id="par_id241020160012177923" role="paragraph" xml-lang="en-US"><item type="input">=WORKDAY.INTL(C3;D3;;F3:J3)</item> returns January 11, 2017 in the result cell, say D6 (use date format for the cell).</paragraph>
<paragraph id="par_id24102016001217206" role="paragraph" xml-lang="en-US">To define Friday and Saturday as weekend days, use the weekend parameter 7.</paragraph>
<paragraph id="par_id241020160012178562" role="paragraph" xml-lang="en-US"><item type="input">=WORKDAY.INTL(C3;D3;7;F3:J3)</item> returns January 15, 2017 with weekend parameter 7.</paragraph>
<paragraph id="par_id241020160012176149" role="paragraph" xml-lang="en-US">To define Sunday only the weekend day, use the weekend parameter 11.</paragraph>
<paragraph id="par_id241020160012181455" role="paragraph" xml-lang="en-US"><item type="input">=WORKDAY.INTL(C3;D3;11;F3:J3)</item> returns January 9, 2017.</paragraph>
<paragraph id="par_id24102016001218469" role="paragraph" xml-lang="en-US">Alternatively, use the weekend string "0000001" for Sunday only weekend.</paragraph>
<paragraph id="par_id241020160012183680" role="paragraph" xml-lang="en-US"><item type="input">=WORKDAY.INTL(C3;D3;"0000001";F3:J3)</item> returns January 9, 2017.</paragraph>
<paragraph id="par_id241020160012181870" role="paragraph" xml-lang="en-US">The function can be used without the two optional parameters – Weekday and Holidays – by leaving them out:</paragraph>
<paragraph id="par_id241020160012182048" role="paragraph" xml-lang="en-US"><item type="input">=WORKDAY.INTL(C3;D3)</item> gives the result: January 10, 2017.</paragraph>
<section id="relatedtopics">
    <embed href="text/scalc/01/04060102.xhp#datetimefunctions"/>
</section>
</body>
</helpdocument>