Find the last day of the year

Turn the date November 4, 2026 into the last day of its year: December 31, 2026.

What you'll make

In Excel: November 4, 2026 becomes December 31, 2026.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesFor row 8
1A8The real date.November 4, 2026
2YEAR( … )Takes only the year from the date.2026
312,31Month 12 and day 31: December 31.December 31
4DATE( … )Puts the year, month and day back into a date.December 31, 2026

Read it from the inside out: YEAR works first, then DATE builds the new date.

=DATE(YEAR(A8),12,31)

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own dates. Paste real dates into the green column of the Template tab. The last days fill in by themselves.
  3. 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: DATE function