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

From Apache OpenOffice Wiki
Jump to: navigation, search
(http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Calc:_YEARFRAC_function 日本語訳、作業中)
(No difference)

Revision as of 14:47, 2 February 2011

YEARFRAC

YEARFRAC

Returns the number of years including fraction between two dates.

2 つの指定日の間にある年数を、端数を含めて返します。

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

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

Syntax:

構文:

YEARFRAC(startdate; enddate; basis)

returns the number of years between the startdate and enddate; basis is an integer specifying the system of how many days are in a month or year, as follows:

YEARFRAC(開始日付; 終了日付; 計算基準)

「開始日付」「終了日付」の間にある年数を返します。「計算基準」 は整数で、月や年に何日あるとする計算方法かを指定します。対応は次を参照してください。
basis day counting system
0 US (NASD) system. 30 days/month, 360 days/year (30/360)
1 Actual/actual
2 Actual/360
3 Actual/365
4 European 30/360
基準 日数の計算方法
0 米国 (NASD、全米証券業者協会) 方式。1 ヵ月 / 30 日、1 年 / 360 日 (30 日 / 360 日)
1 1 ヵ月の正確な日数 / 1 年の正確な日数
2 1 ヵ月の正確な日数 / 360 日
3 1 ヵ月の正確な日数 / 365 日
4 欧州方式。30 日 / 360 日

Example:

例:

YEARFRAC("2007-01-01";"2009-07-01";0)

returns 2.5.

YEARFRAC("2007-01-01";"2009-07-01";0)

「2.5」を返します。

YEARFRAC("2008-01-01";"2008-07-01";3)

returns 0.498630136986.

YEARFRAC("2008-01-01";"2008-07-01";3)

「0.498630136986」を返します。

Issues:

課題:

  • Excel and Calc both produce slightly erroneous results in some circumstances.
  • Excel と Calc のどちらも、若干間違った結果を返す場合があります。

Template:Documentation/SeeAlso

Personal tools