Find the last date of a custom fiscal year

Turn November 4, 2026 with a July start into June 30, 2027, the last day of its fiscal year.

What you'll make

In Excel: November 4, 2026 in a July-start year becomes June 30, 2027.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesFor row 8
1YEAR(A8)The calendar year of the date.2026
2IF(MONTH(A8)<B8,1,0)Gives 1 if the month is before the start month.0: 11 is not before 7
3DATE( … )Makes the first day of the fiscal year.July 1, 2026
4EDATE( … )-1Moves 12 months on, then back one day.June 30, 2027

Excel works from the inside out. Inside DATE, part 1 minus part 2 is the year, then the start month and day 1.

=EDATE(DATE(YEAR(A8)-IF(MONTH(A8)<B8,1,0),B8,1),12)-1

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 Date column and the start month number next to each. The end dates fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Type the start month as a number from 1 to 12, like 7 for July.

Microsoft's help: EDATE function