Syntax
=EOMONTH(start_date, months)Arguments
| Argument | Required | Description |
|---|---|---|
start_date | Required | The starting date |
months | Required | Months to add (negative to go back) |
How to use EOMONTH
EOMONTH takes 2 required arguments. Type =EOMONTH( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=EOMONTH(DATE(2011,1,1), 1)Result =EOMONTH(DATE(2011,1,1), -3)Result Related date and time functions
- DAYReturns the day of the month (1 to 31) of a date.
- DAYSReturns the number of days between two dates.
- DAYS360Returns the days between two dates on a calendar of twelve 30 day months.
- EDATEReturns the date a number of months before or after a date, on the same day of the month where possible.
- HOURReturns the hour (0 to 23) of a time.
- ISOWEEKNUMReturns the ISO week number of the year (weeks start on Monday, week 1 contains the first Thursday).
- MINUTEReturns the minute (0 to 59) of a time.
- MONTHReturns the month (1 to 12) of a date.
- NETWORKDAYSCounts the working days (Monday to Friday) between two dates, both included, leaving out holidays.