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

From Apache OpenOffice Wiki
Jump to: navigation, search
(例:)
(構文:)
Line 13: Line 13:
 
<tt>'''EOMONTH(startdate; addmonths)'''</tt>
 
<tt>'''EOMONTH(startdate; addmonths)'''</tt>
 
: <tt>'''addmonths'''</tt> is a number of months to be added to the <tt>'''startdate'''</tt> (given as text or a date-time serial number), to give a new date. For this new date, <tt>'''EOMONTH'''</tt> returns the date of the last day of the month, as a date-time serial number.
 
: <tt>'''addmonths'''</tt> is a number of months to be added to the <tt>'''startdate'''</tt> (given as text or a date-time serial number), to give a new date. For this new date, <tt>'''EOMONTH'''</tt> returns the date of the last day of the month, as a date-time serial number.
<tt>'''EOMONTH(startdate; addmonths)'''</tt>
+
<tt>'''EOMONTH(startdate; addmonths)'''<= EOMONTH(開始日付列; 追加月列)</tt>
 
: <tt>'''「追加月列」'''</tt>は月の数字で、(文字、または日付・時刻のシリアル値として) <tt>'''「開始日付列」'''</tt>に追加されます。この新しい日付に対して、 <tt>'''EOMONTH'''</tt>は該当する月の最終日の日付を、日付・時刻のシリアル値として返します。
 
: <tt>'''「追加月列」'''</tt>は月の数字で、(文字、または日付・時刻のシリアル値として) <tt>'''「開始日付列」'''</tt>に追加されます。この新しい日付に対して、 <tt>'''EOMONTH'''</tt>は該当する月の最終日の日付を、日付・時刻のシリアル値として返します。
  

Revision as of 01:54, 19 February 2011

EOMONTH

EOMONTH

Returns the date of the last day of a month.

月の最終日の日付を返します。

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

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

Syntax:

構文:

EOMONTH(startdate; addmonths)

addmonths is a number of months to be added to the startdate (given as text or a date-time serial number), to give a new date. For this new date, EOMONTH returns the date of the last day of the month, as a date-time serial number.

EOMONTH(startdate; addmonths)<= EOMONTH(開始日付列; 追加月列)

「追加月列」は月の数字で、(文字、または日付・時刻のシリアル値として) 「開始日付列」に追加されます。この新しい日付に対して、 EOMONTHは該当する月の最終日の日付を、日付・時刻のシリアル値として返します。
addmonths may be positive (in the future), zero or negative (in the past).
「追加月列」としては、正数 (未来)、0、または負数 (過去) を入力できます。

Example:

例:

EOMONTH("2008-02-14"; 0)

returns 39507, which may be formatted as 29Feb08. 2008 is a leap year.

EOMONTH("2008-02-14"; 0)

「39507」と返します。これは、「08 年 2 月 29 日」と読めるよう設定しておけます。2008 年は、うるう年です。

EOMONTH(A1; 2)

where cell A1 contains the date 16Dec07, again returns 39507, which may be formatted as 29Feb08.

EOMONTH(A1; 2)

セル A1 が日付「07 年 12 月 16 日」を含む場合、これも「39507」を返します。これは、「08 年 2 月 29 日」と読めるよう設定しておけます。

Template:Documentation/SeeAlso

Personal tools