Difference between revisions of "User:Syranzi/Documentation/How Tos/Calc: EOMONTH function"
From Apache OpenOffice Wiki
(http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Calc:_EOMONTH_function 日本語訳、作業中) |
(→例:) |
||
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 | + | : <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 | + | : セル A1 が日付<tt>'''「07 年 12 月 16 日」'''</tt>を含む場合、これも<tt>'''「39507」'''</tt>を返します。これは、<tt>'''「08 年 2 月 29 日」'''</tt>と読めるよう設定しておけます。 |
{{Documentation/SeeAlso|関連項目 | {{Documentation/SeeAlso|関連項目 |
Revision as of 01:52, 23 January 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は該当する月の最終日の日付を、日付・時刻のシリアル値として返します。
- 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 日」と読めるよう設定しておけます。