Make a numeric year-month key

Turn November 4, 2026 into the number 202611, the year and month together.

What you'll make

In Excel: November 4, 2026 becomes number 202611.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1YEAR(A8)*100The year of the date, times 100.202600
2MONTH(A8)Adds the month number, 1 to 12.202611

Read it left to right. The result is a number, not a date, so it sorts in order.

=YEAR(A8)*100+MONTH(A8)

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 keys fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

The key is a plain number. Use it only where a field asks for a number like 202611.

Microsoft's help: MONTH function