Function: EOMONTH()
📘 Definition:
The EOMONTH() function returns the last day of the month that is a specified number of months before or after a given start date.
“EOMONTH” means End Of Month — it’s very useful in payroll, interest calculation, monthly reporting, and EMI due tracking.
🧩 Syntax: =EOMONTH(start_date, months)
-
start_date → The beginning date
-
months → Number of months before (-) or after (+) the start date
🧠 Example (Indian Perspective):
| Start Date | Months | Formula | Result |
|---|---|---|---|
| 10-Apr-2024 | 0 | =EOMONTH(A2,B2) |
30-Apr-2024 |
| 15-May-2024 | 2 | =EOMONTH(A3,B3) |
31-Jul-2024 |
| 05-Jun-2024 | -1 | =EOMONTH(A4,B4) |
31-May-2024 |
| 01-Feb-2024 | 12 | =EOMONTH(A5,B5) |
28-Feb-2025 |
So, EOMONTH() helps get the last date of any future or past month, useful for closing reports or billing cycles.
🪜 Step-by-Step Explanation:
-
Suppose A2 =
10-Apr-2024, B2 = 0 -
Formula →
=EOMONTH(A2, 0) -
Excel calculates the end of the same month → 30-Apr-2024
-
If B2 = 1 → adds one month → 31-May-2024
💡 Tip:
You can use it together with +1 to get the first day of next month:
That gives 01-May-2024
🎯 Why It’s Useful:
-
Automatically finds the month-end date for salaries, reports, and invoices.
-
Avoids manual errors when months have 28, 30, or 31 days.
-
Perfect for financial year-end or quarter-end calculations.
🧑💻 Project Task 1: Salary Processing Month-End Date
| Employee ID | Joining Date | Salary Month Offset | Salary Process Date |
|---|---|---|---|
| E101 | 10-Apr-2024 | 0 | |
| E102 | 15-Apr-2024 | 1 | |
| E103 | 25-Apr-2024 | 2 | |
| E104 | 01-May-2024 | 0 |
👉 Tasks:
-
Use
=EOMONTH(B2, C2)to find the Salary Process Date -
Format as
DD-MMM-YYYY -
Highlight those whose salary process date falls in June 2024
🧑💻 Project Task 2: EMI or Rent Due at Month-End
| Customer ID | Start Date | Month Gap | EMI Due (Month End) |
|---|---|---|---|
| C101 | 01-Jan-2024 | 1 | |
| C102 | 15-Feb-2024 | 2 | |
| C103 | 05-Mar-2024 | 3 | |
| C104 | 20-Apr-2024 | 6 |
👉 Tasks:
-
Use
=EOMONTH(B2, C2)to get EMI due date. -
Use
TEXT()to format like“dd-mmm-yyyy”. -
Identify which customer’s EMI falls in September 2024.