Difference between revisions of "Manuals/calci/EOMONTH"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
=EOMONTH(sd,m)=
  
Syntax
+
*where <math>sd</math> is the starting date
 +
*<math>m</math> is the number of months that can be positive or negative.
  
</div></div>
+
EOMONTH() displays the serial number of the last day of the month before or after the specified number of months.
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
== Description ==
  
</div></div>
+
EOMONTH(sd,m)
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
For Example,
  
</div></div>
+
EOMONTH("12/12/2013",1) ''returns Fri JAN 31 2014 17:29:48 GMT-0500(Eastern Standard Time)''  
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6" face="Arial, sans-serif"><font size="6">'''EOMONTH '''</font></font>
 
  
'''<font size="6" face="Arial"></font>'''
+
This is the last day of the month, one month after the starting date.
  
</div></div>
+
*The function initially calculates the actual month by adding or subtracting the specified month from the starting date, and displays the last day of that month.
----
+
*Argument <math>sd</math> should be entered in a date format, using DATE function, or as a result of any other function.
<div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
+
*If <math>sd</math> is not a valid date, Calci displays #NULL error message.
 +
*If <math>sd</math> with number of months <math>m</math> mentioned, is not a valid date, Calci displays #NULL error message.
 +
*The number of months <math>m</math> can be positive or negative.
 +
*Positive value of <math>m</math> adds up the months from <math>sd</math> and displays future date, while negative value of <math>m</math> subtracts the months from <math>sd</math> and displays past date.
 +
*If <math>m</math> is a non-integer, it is truncated.
 +
*If <math>m</math> is omitted, Calci assumes it to be '0' i.e. last day of the same specified month is displayed.
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''EOMONTH'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">(</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''sd'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">,</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''M'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">)</font></font></font>
+
== Examples ==
 
+
<div id="2SpaceContent" class="zcontent" align="left">
<font color="#484848"><font face="Arial, sans-serif"><font size="2">where sd</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">  is a date that represents the starting date and M is the number of months before or after start date.</font></font></font>
 
 
 
</div></div>
 
----
 
<div id="1SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">EOMONTH gives the serial number for the last day of the month that is the indicated number of months before or after start date. It is used to calculate maturity dates or due dates that fall on the last day of the month.</font></font></font></div></div>
 
----
 
<div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's see an example in Column1Row1</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">C1R1 = 03/02/2007</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e =EOMONTH(C1R1,1) is Mon Apr 30 00:00:00 UTC+0530 2007(<font face="Tahoma, sans-serif"><font size="1">Date of the last day of the month ,</font></font>one month after the date above)</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">///rly =EOMONTH(C1R1,-2) is Wed Jan 31 00:00:00 UTC+0530 2007(<font face="Tahoma, sans-serif"><font size="1">Date of the last day of the month, two months before the date above)</font></font></font></font></font>
 
 
 
<br /><br />
 
 
 
</div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left">
 
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
 +
| class=" " | 1/1/2010
 +
| class=" " |
 
| class=" " |
 
| class=" " |
| Column1
+
 
| Column2
 
| Column3
 
| Column4
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
| class="sshl_f" |  
| class=" " | 03/02/2007
+
| class=" " | 12/12/2013
| class="sshl_f" | Mon Apr 30 00:00:00 UTC+0530 2007
+
| class=" " |
| class="sshl_f" | Wed Jan 31 00:00:00 UTC+0530 2007
+
 
| class="sshl_f  " |
 
 
|- class="even"
 
|- class="even"
| class=" " | Row2
+
| class=" " |  
| class="                                              " |
 
 
| class=" " |
 
| class=" " |
| class="f52543                      " |
+
| class=" " | 4/20/2008
| class="  SelectTD" |
+
 
<div id="4Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="4Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class=" " |  
| class="  " |
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 +
 
|- class="even"
 
|- class="even"
| Row4
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 +
 
|- class="odd"
 
|- class="odd"
| class=" " | Row5
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " |
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 +
| class=" " |
 
| class=" " |
 
| class=" " |
 +
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
=EOMONTH(A1,6) :Calculates last day of the month, six months after 1/1/2010. Returns ''Sat Jul 31 2010 17:39:30 GMT-0400(Eastern Daylight Time)'' as a result.
----
+
=EOMONTH(B1,-1) :Calculates last day of the month, one month before 12/12/2013. Returns ''Sat Nov 30 2013 17:42:39 EST-0500(Eastern Standard Time)'' as a result.
 +
=EOMONTH(C1,3.5) :Calculates last day of the month, three months after 4/20/2008. Returns ''Thu Jul 31 2008 17:43:43 GMT-0400(Eastern Daylight Time)'' as a result.
 +
 
 +
==See Also==
 +
 
 +
*[[Manuals/calci/DATE  | DATE ]]
 +
*[[Manuals/calci/DAYS360  | DAYS360]]
 +
*[[Manuals/calci/DATEVALUE  | DATEVALUE]]
 +
 
 +
==References==

Revision as of 18:04, 17 December 2013

EOMONTH(sd,m)

  • where is the starting date
  • is the number of months that can be positive or negative.

EOMONTH() displays the serial number of the last day of the month before or after the specified number of months.

Description

EOMONTH(sd,m)

For Example,

EOMONTH("12/12/2013",1) returns Fri JAN 31 2014 17:29:48 GMT-0500(Eastern Standard Time)

This is the last day of the month, one month after the starting date.

  • The function initially calculates the actual month by adding or subtracting the specified month from the starting date, and displays the last day of that month.
  • Argument should be entered in a date format, using DATE function, or as a result of any other function.
  • If is not a valid date, Calci displays #NULL error message.
  • If with number of months mentioned, is not a valid date, Calci displays #NULL error message.
  • The number of months can be positive or negative.
  • Positive value of adds up the months from and displays future date, while negative value of subtracts the months from and displays past date.
  • If is a non-integer, it is truncated.
  • If is omitted, Calci assumes it to be '0' i.e. last day of the same specified month is displayed.

Examples

1/1/2010
12/12/2013
4/20/2008
=EOMONTH(A1,6) :Calculates last day of the month, six months after 1/1/2010. Returns Sat Jul 31 2010 17:39:30 GMT-0400(Eastern Daylight Time) as a result.
=EOMONTH(B1,-1) :Calculates last day of the month, one month before 12/12/2013. Returns Sat Nov 30 2013 17:42:39 EST-0500(Eastern Standard Time) as a result.
=EOMONTH(C1,3.5) :Calculates last day of the month, three months after 4/20/2008. Returns Thu Jul 31 2008 17:43:43 GMT-0400(Eastern Daylight Time) as a result.

See Also

References