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

From Apache OpenOffice Wiki
Jump to: navigation, search
(http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Calc:_EOMONTH_function 日本語訳、作業中)
 
 
(2 intermediate revisions by 2 users not shown)
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>は該当する月の最終日の日付を、日付・時刻のシリアル値として返します。
  
Line 24: Line 24:
 
: returns <tt>'''39507'''</tt>, which may be formatted as <tt>'''29Feb08'''</tt>. 2008 is a leap year.
 
: returns <tt>'''39507'''</tt>, which may be formatted as <tt>'''29Feb08'''</tt>. 2008 is a leap year.
 
<tt>'''EOMONTH("2008-02-14"; 0)'''</tt>
 
<tt>'''EOMONTH("2008-02-14"; 0)'''</tt>
: <tt>'''「39507」'''</tt>と返します。これは、<tt>'''「08 年 2 月 29 日 (29Feb08)」'''</tt>と読めるよう設定しておけます。2008 年は、うるう年です。
+
: <tt>'''「39507」'''</tt>と返します。これは、<tt>'''「08 年 2 月 29 日」'''</tt>と読めるよう設定しておけます。2008 年は、うるう年です。
  
 
<tt>'''EOMONTH(A1; 2)'''</tt>
 
<tt>'''EOMONTH(A1; 2)'''</tt>
 
: where cell A1 contains the date <tt>'''16Dec07'''</tt>, again returns <tt>'''39507'''</tt>, which may be formatted as <tt>'''29Feb08'''</tt>.
 
: where cell A1 contains the date <tt>'''16Dec07'''</tt>, again returns <tt>'''39507'''</tt>, which may be formatted as <tt>'''29Feb08'''</tt>.
 
<tt>'''EOMONTH(A1; 2)'''</tt>
 
<tt>'''EOMONTH(A1; 2)'''</tt>
: セル A1 が日付<tt>'''「07 年 12 月 16 日 (16Dec07)」'''</tt>を含む場合、これも<tt>'''「39507」'''</tt>を返します。これは、<tt>'''「08 年 2 月 29 日 (29Feb08)」'''</tt>と読めるよう設定しておけます。
+
: セル A1 が日付<tt>'''「07 年 12 月 16 日」'''</tt>を含む場合、これも<tt>'''「39507」'''</tt>を返します。これは、<tt>'''「08 年 2 月 29 日」'''</tt>と読めるよう設定しておけます。
  
{{Documentation/SeeAlso|関連項目
+
{{SeeAlso|EN|関連項目
 
* [[Documentation/How_Tos/Calc: EDATE function|EDATE]]
 
* [[Documentation/How_Tos/Calc: EDATE function|EDATE]]
 
* [[Documentation/How_Tos/Calc: WORKDAY function|WORKDAY]]
 
* [[Documentation/How_Tos/Calc: WORKDAY function|WORKDAY]]

Latest revision as of 09:47, 17 July 2018

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 日」と読めるよう設定しておけます。



See Also

関連項目

Personal tools