Count the days in a date’s month
Turn the date November 4, 2026 into the number of days in its month: 30.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The real date. | November 4, 2026 |
| 2 | 0 | Stays in the same month. | November 2026 |
| 3 | EOMONTH( … ,0) | Finds the last day of that month. | November 30, 2026 |
| 4 | DAY( … ) | Gives that last day as a number. | 30 |
Each bracket wraps the one above it, so Excel works from the inside out. Leap years are counted.
=DAY(EOMONTH(A8,0))How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own dates. Paste real dates into the green column of the Template tab. The day counts fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Pasted text that only looks like a date may turn amber. Retype it as a real date.
Microsoft's help: EOMONTH function
OTHER ROUTES YOU MIGHT LIKE

Find the Monday that starts a week
Wednesday November 4, 2026 → Monday November 2, 2026
Get the template →
Find the Sunday that ends a date’s week
Wednesday November 4, 2026 → Sunday November 8, 2026
Get the template →
Find the first day of the month
November 4 → November 1
Get the template →
Show a letter date as November 5, 2026
11/5/2026 → November 5, 2026
Take this route →