Leading the way in Microsoft Office Development
 Home|Excel|Word|PowerPoint|Consultancy|Feedback|Contact 
 Microsoft Excel > Functions > Date and Time > EOMONTH

 

EOMONTH(start_date, months)

 
 Returns the serial number of the last day of a month before or after a date.

 start_dateThe start date.
 monthsThe number of months before or after the "start_date".

 REMARKS
 
  • This function is only available if you have the Analysis ToolPak add-in installed.
     
  • This function can be used to calculate maturity dates or due dates that fall on the same day on the month as the date of issue.
     
  • If "start_date" is not a valid date, then #NUM! is returned.
     
  • If "start_date" plus "months" yields an invalid date, then #NUM! is returned.
     
  • If "months" is not an integer, it is truncated.
     
  • If "months" > 0, then a date in the future is returned.
     
  • If "months" < 0, then a date in the past is returned.
     
  • If "months" = 0, then the end of the "start_date" month is returned.
     
  • If "months" is left blank, then #N/A is returned.
     
  • If no arguments are submitted, then #NA! is returned
     
  • You should try and enter your dates using the DATE() function.
     
  • You can use the TEXT() function to return a number with a particular format.
     
  • You can use the DATEVALUE() function to return the serial number representing a date in a text format.

     EXAMPLES
     
     A
    1=EOMONTH("01/07/1977",0) = 28337
    2=EOMONTH("01/07/1977",0) = 31/07/1977
    3=EOMONTH("01/07/1977",1) = 31/08/1977
    4=EOMONTH("01/07/1977",2) = 30/09/1977
    5=EOMONTH("01/07/1977",-6) = 31/01/1977
    6=EOMONTH("01/01/1998",-1) = 31/12/1997
    7=EOMONTH("2000/01/30",3) = 30/04/2000
    8=EOMONTH(DATEVALUE("01/12/1998"),2) = 28/02/1999
    9=EOMONTH("2000/20/20",3) = #VALUE!
    10=#N/A = #N/A
    11=#N/A = #N/A
    12=TEXT(EOMONTH("2000/01/30",3),"ddd-mm yyyy") = Sun-04 2000
     

     Functions - E | Index - E | Dates & Times | Office Online 

     Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved.Top