# EOMONTH Function

> Return the last day of the month a number of months before or after a date with EOMONTH in TX Sheet Control: negative months, serial numbers and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > EOMONTH Function
- **204 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/eomonth/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/eomonth/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/eomonth/llms-full.txt

---

Return the last day of the month a number of months before or after a date. `start_date` is the date and `months` the number of months, negative for earlier months; 0 returns the end of the month of `start_date`. The result is a date serial number; format the cell as a date to show it as a date.

### Syntax

```text
EOMONTH(start_date, months)
```

Category: Date & Time. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=EOMONTH(DATE(2026,1,15),1)
```

The formula returns 46081, the serial number of February 28, 2026.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [ENCODEURL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/encodeurl/llms-full.txt)
- **Next:** [ERF Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/erf/llms-full.txt)
