Difference between revisions of "User:Syranzi/Documentation/How Tos/Calc: WEEKS function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Calc:_WEEKS_function 日本語訳、作業中)
 
(課題:)
Line 47: Line 47:
 
=== 課題: ===
 
=== 課題: ===
 
* This function is not available in Excel.
 
* This function is not available in Excel.
* この機能は Excel にはありません。
+
* この関数は Excel にはありません。
  
{{Documentation/SeeAlso|
+
{{Documentation/SeeAlso|関連項目
 
* [[Documentation/How_Tos/Calc: DAYS function|DAYS]]
 
* [[Documentation/How_Tos/Calc: DAYS function|DAYS]]
 
* [[Documentation/How_Tos/Calc: MONTHS function|MONTHS]]
 
* [[Documentation/How_Tos/Calc: MONTHS function|MONTHS]]

Revision as of 08:25, 30 January 2011

WEEKS

WEEKS

Returns the number of weeks between two dates.

2 つの日の間にある週数を返します。

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

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

Syntax:

構文:

WEEKS(startdate; enddate; mode)

If mode is 0, WEEKS returns the number of whole weeks between startdate and enddate - that is INT(number_of_days_difference / 7).

WEEKS(開始日付; 終了日付; 計算方式)

「計算方式」0 であれば、WEEKS「開始日付」「終了日付」の間にある全週数を返します。関数 INT(日数差 / 7) と同じ値です。
If mode is 1, WEEKS identifies the Monday_to_Sunday week that startdate and enddate each lie in, and returns the difference between those weeks.
「計算方式」1 であれば, WEEKS「開始日付」「終了日付」それぞれが属する月曜日~日曜日の週を特定して、両週の差の値を返します。
If startdate is after enddate the result will be negative.
「開始日付」「終了日付」より後の日であれば、導き出される結果は負数になります。

Example:

例:

WEEKS("2010-05-03"; "2010-05-17"; 0)

returns 2. Both dates are Mondays, and there are 14 days between them.

WEEKS("2010-05-03"; "2010-05-17"; 0)

「2」を返します。両日とも金曜日で、間に 14 日あります。

WEEKS("2010-05-04"; "2010-05-27"; 0)

returns 3; there are 23 days between the two dates.

WEEKS("2010-05-04"; "2010-05-27"; 0)

「3」を返します。両日の間に 23 日あります。

WEEKS("2010-05-06"; "2010-05-17"; 1)

returns 2; 6 May 2010 lies in week 3-9 May, and 17 May 2010 lies in week 17-23 May, two weeks later.

WEEKS("2010-05-06"; "2010-05-17"; 1)

「2」を返します。2010 年 5 月 6 日は 5 月 3 ~ 9 日の週に属し、2010 年 5 月 17 日は 2 週間後である 5 月 17 ~ 23 日の週に属します。

WEEKS("2010-05-09"; "2010-05-10"; 1)

returns 1. 9 May 2010 is a Sunday and 10 May 2010 is the Monday of the following week.

WEEKS("2010-05-09"; "2010-05-10"; 1)

「1」を返します。2010 年 5 月 9 日は日曜日、2010 年 5 月 10 日は翌週の月曜日です。

Issues:

課題:

  • This function is not available in Excel.
  • この関数は Excel にはありません。

Template:Documentation/SeeAlso

Personal tools