Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

EOMONTH and Start of Month Formulas in Excel

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

EOMONTH returns the last day of a month a specified number of months before or after a start date, and the start of the month is simply EOMONTH of the previous month plus one day. For example, =EOMONTH(TODAY(),0) gives the last day of the current month, while =EOMONTH(TODAY(),-1)+1 gives the first day of the current month. This guide shows the exact formulas, how to use them for month-end and month-start reporting, and how to avoid the usual date-formatting and negative-month errors.

What You'll Need

  • Microsoft Excel 2010 or later, Excel for Microsoft 365, or Google Sheets (EOMONTH works in all of them; the function name and arguments are the same).
  • A date in a cell, or a date-producing function such as TODAY().
  • Basic familiarity with entering formulas and formatting cells as dates.

Step-by-Step

  1. Enter your base date. Type a date into cell A1, for example 15/03/2025 (or 3/15/2025 depending on your region). Make sure Excel recognises it as a date: if it aligns to the right by default, it is a real date; if it sits on the left, it is text. You can also use =TODAY() in A1 to base everything on the current date.
  2. Get the last day of the current month. In cell B1, type =EOMONTH(A1,0). The second argument, 0, means the same month as the start date. The result is the final calendar day of that month, for example 31/03/2025.
  3. Get the last day of a future or past month. Use a positive number for future months and a negative number for past months: =EOMONTH(A1,1) gives the last day of the next month, =EOMONTH(A1,-1) gives the last day of the previous month. The function handles months of different lengths automatically, including February in leap years.
  4. Get the first day of the current month. Type =EOMONTH(A1,-1)+1. This takes the last day of the previous month and adds one day, landing on the first of the current month. An alternative that many people find clearer is =DATE(YEAR(A1),MONTH(A1),1), which builds the first day directly from the year and month of A1.
  5. Get the first day of next month. Use =EOMONTH(A1,0)+1. This is the standard way to build a month-start range: the start is EOMONTH of the prior month plus one, and the end is EOMONTH of the current month.
  6. Format the results as dates. Select B1 and any other formula cells, then press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, choose Date, and pick a format. If you see a five-digit number such as 45747, the formula is correct but the cell is formatted as General; applying a date format fixes the display.
  7. Build a month label (optional). To show a readable month name, wrap the result in TEXT: =TEXT(EOMONTH(A1,0),"mmmm yyyy") returns something like March 2025. This is useful for report headers where you want the month name rather than a date.
  8. Copy the formulas down a column. If you have a list of dates in A2:A100, enter the formula in B2 and drag the fill handle down. Use absolute references only if you are pointing every row at one fixed date, for example =EOMONTH($A$1,0).

Common Mistakes

  • Dates stored as text. If EOMONTH returns #VALUE!, the start date is probably text. Check with =ISNUMBER(A1); it should return TRUE. Convert text dates with Date > Text to Columns or by re-entering them in a recognised format.
  • Forgetting the +1 for month starts. EOMONTH alone always returns a month-end date. The first of the month is EOMONTH of the previous month plus one day, not EOMONTH of the current month.
  • Using the wrong sign. A positive months argument moves forward, a negative one moves backward. Mixing them up shifts your report by a whole month.
  • Expecting EOMONTH to work on text months. The function needs a real date or a date serial number; a label like "March 2025" typed as text will not work.
  • Ignoring the #NUM! error. This appears when the result would fall outside Excel's supported date range (before 1 January 1900 or after 31 December 9999), usually from a very large negative or positive months argument.

Tips

  • Use =EOMONTH(TODAY(),0) for a month-end report that always reflects the current month without editing.
  • Pair EOMONTH with SUMIFS for month-to-date totals: sum values where the date is greater than or equal to EOMONTH(TODAY(),-1)+1 and less than or equal to EOMONTH(TODAY(),0).
  • For a clean month-start formula that reads well in audits, =DATE(YEAR(A1),MONTH(A1),1) is often preferred over the EOMONTH trick.
  • In Google Sheets, EOMONTH works identically, so formulas can be copied between the two with no changes.
  • Name your base date cell (Formulas > Define Name) so formulas read like =EOMONTH(ReportDate,0).

Troubleshooting

If the formula returns a serial number instead of a date, format the cell as Date (Ctrl+1). If you get #VALUE!, confirm the start date is a real date, not text. If you get #NUM!, reduce the size of the months argument. If the result is off by one month, check the sign of the months argument and remember that month starts need the +1. If dragging the formula changes the wrong cell, lock the reference with $ signs. In Google Sheets, the same errors apply; check that the cell is formatted as a date via Format > Number > Date.

Frequently Asked Questions

What does the 0 in EOMONTH mean?

It means the same month as the start date. Use 1 for next month, -1 for last month, and so on.

How do I get the first day of the month?

Use =EOMONTH(A1,-1)+1 or =DATE(YEAR(A1),MONTH(A1),1).

Does EOMONTH work in Google Sheets?

Yes, with the same syntax and arguments as Excel.

Why does EOMONTH return a number like 45747?

The cell is formatted as General. Apply a date format to show the date.

Can EOMONTH handle leap years?

Yes. It returns 29 February in leap years automatically.

What is the difference between EOMONTH and EDATE?

EDATE returns the same day number in a shifted month, while EOMONTH always returns the last day of that month.