Fiscal Year Calculation in Excel: Step-by-Step Guide
In this article
To calculate a fiscal year in Excel, use a formula that shifts the date by the number of months between your fiscal year start and January. For a July–June fiscal year, the formula is =YEAR(A2)+(MONTH(A2)>=7) for the year label, and =YEAR(A2)+(MONTH(A2)>=7)-1 for the starting calendar year. This works because Excel treats TRUE as 1 and FALSE as 0. The result is a clean fiscal year number you can sort, filter, and pivot on.
What You'll Need
- Excel 2016 or later (or Microsoft 365) on Windows or Mac. The formulas here also work in Excel for the web and Google Sheets with minor syntax differences.
- A column of valid dates. If your dates are stored as text, convert them first using Data > Text to Columns or
DATEVALUE. - Your fiscal year start month (e.g., 7 for July, 10 for October). Write it in a cell so you can change it later without editing every formula.
Step-by-Step
- Set up your data. Put your dates in column A starting at A2. In an empty cell, say E1, type your fiscal start month as a number (1–12). For example, 7 for July. Label it “Fiscal Start Month” in D1.
- Write the fiscal year formula. In B2, enter:
=YEAR(A2)+(MONTH(A2)>=E1)
This adds 1 to the calendar year when the month is on or after your start month. For a July start, a June date stays in the prior year; a July date moves forward. - Copy the formula down. Drag the fill handle from B2 to the last row. If you use an Excel Table (Ctrl+T), the formula fills automatically for new rows.
- Optional: show the fiscal year as a range. If you prefer “FY2024–25” style, use:
="FY"&YEAR(A2)+(MONTH(A2)>=E1)&"–"&RIGHT(YEAR(A2)+(MONTH(A2)>=E1)+1,2)
Adjust the separator to match your region. - Optional: calculate fiscal quarter. Use:
=ROUNDUP(MONTH(EDATE(A2,-(E1-1)))/3,0)
This shifts the month so January becomes month 1 of the fiscal year, then divides by 3. The result is 1–4. - Optional: calculate fiscal month number. Use:
=MONTH(EDATE(A2,-(E1-1)))
This gives 1 for the first month of your fiscal year, 2 for the second, and so on. - Check a few rows manually. Pick a date before your start month and one after. Confirm the year and quarter match your expectation. If not, adjust E1 or check that A2 is a real date, not text.
- Use the results. Sort, filter, or build a PivotTable using the fiscal year column as a row field. Because the formula returns a number, Excel groups it correctly.
Common Mistakes
- Using
>=vs>. For a July start, July itself belongs to the new fiscal year, so use>=. Using>pushes July into the prior year. - Hard-coding the start month. Writing
7directly in every formula makes changes painful. Reference a cell instead. - Dates stored as text. If
MONTH(A2)returns an error, A2 is likely text. UseISNUMBER(A2)to check, then convert. - Forgetting the year offset for labels. The fiscal year number is not always the same as the calendar year of the date. A January date in a July–June year belongs to the previous fiscal year number.
- Mixing calendar and fiscal quarters. Label columns clearly so you do not compare Q1 calendar with Q1 fiscal.
Tips
- Name your start-month cell (Formulas > Define Name) so formulas read like
=YEAR(A2)+(MONTH(A2)>=FiscalStart). - Use
EDATEfor month shifting; it handles year boundaries automatically. - If your fiscal year starts mid-month (e.g., 15 July), the simple month test is not enough. Add a day check:
=YEAR(A2)+(MONTH(A2)>E1)+((MONTH(A2)=E1)*(DAY(A2)>=E2))where E2 is the start day. - For 4-4-5 retail calendars, Excel alone is not enough; use a lookup table of period start dates.
- Keep a helper column with the fiscal year as text if you need to concatenate labels.
Troubleshooting
- Formula returns #VALUE!. A2 is not a date. Select the column, use Data > Text to Columns > Finish, or wrap with
DATEVALUE. - All results are one year off. Check whether your start month should use
>=or>. Also confirm E1 is a number, not text. - Fill handle copies the same value. Calculation is set to Manual. Go to Formulas > Calculation Options > Automatic.
- PivotTable groups by calendar year. Use the fiscal year column as a row field, not the date field, or add a calculated field.
- Quarter numbers look wrong. Verify E1 is the start month, not the end month. For an October start, E1 should be 10.
- Dates before 1900. Excel for Windows does not handle them natively; use text or a different tool.
Frequently Asked Questions
How do I calculate fiscal year for a July–June calendar?
Use =YEAR(A2)+(MONTH(A2)>=7). July through December get the next year number; January through June stay in the current year.
Can I get the fiscal year as “FY24” instead of a number?
Yes. Use ="FY"&RIGHT(YEAR(A2)+(MONTH(A2)>=E1),2). Adjust the 2 to show more digits.
Why does my formula show TRUE or FALSE?
You likely omitted the YEAR(A2)+ part. The comparison MONTH(A2)>=E1 returns TRUE/FALSE; adding it to YEAR converts it to 1/0.
Does this work in Google Sheets?
Yes, the same formulas work. Use ARRAYFORMULA if you want to fill a whole column at once.
How do I handle a fiscal year that starts on a specific day, like 6 April?
Add a day test: =YEAR(A2)+(MONTH(A2)>4)+((MONTH(A2)=4)*(DAY(A2)>=6)). This moves dates on or after 6 April into the new year.
Can I use a named range for the start month?
Yes. Select the cell, go to Formulas > Define Name, and name it FiscalStart. Then use MONTH(A2)>=FiscalStart in your formula.