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

From Apache OpenOffice Wiki
Jump to: navigation, search

WEEKSINYEAR

WEEKSINYEAR

Returns the number of weeks in a year.

1 つの年の総週数を返します。

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

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

Syntax:

構文:

WEEKSINYEAR(date)

returns the number of weeks in the year in which date lies.

WEEKSINYEAR(日付)

「日付」が属する年の総週数を返します。
A week is considered to start on Monday, and is considered to be in the year if most of its days are in that year.
週は月曜日始まりとされ、週内の大半の日が属する年の週として扱われます。

Example:

例:

WEEKSINYEAR("2010-02-14")

returns 52, the number of weeks in 2010.

WEEKSINYEAR("2010-02-14")

2010 年の週数である「52」を返します。

WEEKSINYEAR("2009-02-14")

returns 53, the number of weeks in 2009. In 2009, both 1st January and 31st December fall on a Thursday; the weeks containing 1st January and 31st December both have most of their days in 2009, and therefore both are counted.

WEEKSINYEAR("2009-02-14")

2009 年の週数である「53」を返します。2009 年は、1 月 1 日と 12 月 31 日がどちらも木曜日です。1 月 1 日と 12 月 31 日を含む週は、両週とも大部分の日が 2009 年に属するので、週数に計上されます。

Issues:

課題:

  • WEEKSINYEAR is not part of the forthcoming ODFF international standard, and should not be regarded as portable. It is not available in Excel.
  • WEEKSINYEAR は、将来的に ODFF 国際標準の範疇に入らず、移植可能として扱われるべきでありません。Excel では使われていない関数です。



See Also

関連項目

Personal tools