Date & Time All versions ◉ 19 views

=EOMONTH()

Returns the serial number for the last day of the month that is the indicated number of months before or after start_date. Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=EOMONTH(start_date, months)
Hover argument names in the table for details.
Output typeDate
Popularity50 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =EOMONTH() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download EOMONTH.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
start_date Date Required A date that represents the starting date. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
months Number Required The number of months before or after start_date. A positive value for months yields a future date; a negative value yields a past date. Note If months is not an integer, it is truncated.

▣ Examples

▦ Data
CellValue
A2 Date
A3 1-Jan-11
A4 Date
A5 1-Jan-11
Date of the last day of the month, one month after the date in A2. =EOMONTH(A2,1)
Result: 2/28/2011
Date of the last day of the month, three months before the date in A2. =EOMONTH(A2,-3)
Result: 10/31/2010

§ Remarks

  • Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
  • If start_date is not a valid date, EOMONTH returns the #NUM! error value.
  • If start_date plus months yields an invalid date, EOMONTH returns the #NUM! error value.

✦ Tips

  • Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.

⚠ Common Errors

#NUM! If start_date is not a valid date, EOMONTH returns the #NUM! error value. If start_date plus months yields an invalid date, EOMONTH returns the #NUM! error value.
Fix: تاریخ شروع را با تابع DATE وارد کنید و مقدار months را طوری انتخاب کنید که تاریخ حاصل در محدوده مجاز اکسل باشد.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.