User:Syranzi/Documentation/How Tos/Calc: NETWORKDAYS function

From Apache OpenOffice Wiki
Revision as of 15:06, 28 January 2011 by Syranzi (Talk | contribs)

Jump to: navigation, search

NETWORKDAYS

NETWORKDAYS

Returns the number of workdays between two dates.

2つの日付の間にある営業日数を返します。

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

この機能は、Analysis AddIn (分析アドイン) がインストールされている場合のみ使用可能です。


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.

NETWORKDAYS(開始日付; 終了日付; 休日範囲)

「開始日付」「終了日付」 の間にある (開始日と終了日も含めた) 営業日数を返します。
土曜日および日曜日は休日として想定されています。「休日範囲」 (任意) は、土日以外で休日に含める日付の範囲です。

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")

「2」を返します。08 年 9 月 5 日は金曜日、08 年 9 月 8 日は月曜日です。金曜日と月曜日は営業日として計上され、土曜日と日曜日は対象外にされています。

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).

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

セル D1 が 08 年 9 月 8 日、セル D2 が 08 年 12 月 25 日であれば、「1」を返します。08 年 9 月 5 日は金曜日であり、営業日です。土曜日と日曜日は対象外にされました。08 年 9 月 8 日は月曜日ですが、(セル D1 で) 休日として指定されました。

Issues:

課題:

  • Note that NETWORKDAYS counts the first day of the period (it is inclusive); in contrast DAYS does not.
  • NETWORKDAYS は指定された期間の初日を (数に含めて) 計上することに注意してください。対称的に、DAYS では初日が計上されません。

Template:Documentation/SeeAlso

Personal tools