Excel Get Fiscal Month from Date: Formula Guide
In this article
To get the fiscal month from a date in Excel, you use a formula that shifts the month number based on your fiscal year start month. For example, if your fiscal year starts in July, the formula =MOD(MONTH(A2)-7,12)+1 returns 1 for July, 2 for August, and so on. This article explains the logic, provides variations for different fiscal calendars, and answers common questions.
in t | Date (as serial number) | - | 45000 | 0 in m | Fiscal year start month | - | 7 | 1 out fm | Fiscal month | - | MOD(MONTH(t)-m,12)+1 | 0 out q | Fiscal quarter | - | CEILING(MOD(MONTH(t)-m,12)+1/3,1) | 0 out cy | Calendar month | - | MONTH(t) | 0
Formula
The core formula to convert a calendar date to a fiscal month is:
Fiscal Month = MOD(MonthNumber - FiscalStartMonth, 12) + 1
- MonthNumber – the calendar month of the date (1–12), obtained with
MONTH(date). - FiscalStartMonth – the month number (1–12) when your fiscal year begins. For example, July = 7.
- MOD – the modulo function returns the remainder after division. It wraps the result so that months before the start month are shifted correctly.
- +1 – adjusts the result so the first month of the fiscal year becomes 1, not 0.
For example, if your fiscal year starts in July (month 7), a date in July gives MOD(7-7,12)+1 = 1. A date in June gives MOD(6-7,12)+1 = 12, because MOD(-1,12) returns 11, then +1 = 12.
Worked Example
Let’s use the default values from the calculator above: a date with serial number 45000 (which corresponds to March 15, 2023 in Excel’s date system) and a fiscal year start month of July (7).
- Get the calendar month:
MONTH(45000)= 3 (March). - Subtract the fiscal start month: 3 – 7 = -4.
- Apply MOD with 12:
MOD(-4,12)= 8 (because -4 + 12 = 8). - Add 1: 8 + 1 = 9.
So the fiscal month is 9. This means March is the 9th month of the fiscal year that started in July. The calculator’s first output shows 9, confirming the calculation.
Why Use a Fiscal Month?
Many organizations, especially in retail, education, and government, use a fiscal year that does not align with the calendar year. For example, the U.S. federal government’s fiscal year starts on October 1, while many school districts start in July. Reporting sales, budgets, or inventory by fiscal month allows consistent comparison across periods that may span two calendar years. Without converting dates to fiscal months, a report for “March 2023” might actually belong to the 9th month of FY2023 (if the fiscal year started in July 2022).
Using a formula like the one above ensures that every date maps to a single fiscal month, making pivot tables, charts, and summaries accurate.
How to Choose the Right Formula
The basic formula works for any fiscal year that starts on the first day of a month. However, you must know your fiscal start month. Here are common scenarios:
- Fiscal year starts in January – then the fiscal month equals the calendar month, so no conversion is needed.
- Fiscal year starts in any month (1–12) – use
=MOD(MONTH(date)-start_month,12)+1. - Fiscal year starts in a month but you want the fiscal year label – use
=YEAR(date) - (MONTH(date)to get the fiscal year number. - Fiscal year uses a 4-4-5 or 4-5-4 calendar – this simple formula does not work because months are not calendar months; you need a lookup table.
If your fiscal year does not start on the first of a month, or if you use a retail calendar, you will need a different approach, typically a mapping table that assigns each date to a fiscal period.
Common Mistakes and Pitfalls
One frequent error is using MOD(month - start, 12) without the +1. That gives 0 for the first month, which is not a valid month number. Another mistake is forgetting that Excel’s MONTH function returns the calendar month, not the fiscal month. Also, when copying formulas, ensure the fiscal start month cell reference is absolute (e.g., $B$1) if you don’t want it to change.
Another pitfall is misinterpreting the result. For example, if your fiscal year starts in July, a fiscal month of 1 is July, not January. Always label your columns clearly, such as “Fiscal Month (1=Jul)” to avoid confusion.
Finally, if you use dates stored as text, the MONTH function may fail. Convert text dates to real dates using DATEVALUE or the Text-to-Columns wizard.
Alternatives to the Formula
If you prefer not to write a formula, you can create a lookup table that lists every date in your fiscal year and its corresponding fiscal month. Then use VLOOKUP or XLOOKUP to match dates. This is more flexible for irregular fiscal calendars.
You can also use Excel’s CHOOSE function with a list of month names, but that is less efficient than the MOD formula. For users of Excel 365, you might use LET to define variables for clarity:
=LET(d, A2, start, 7, MOD(MONTH(d)-start,12)+1)
This does the same thing but makes the logic more readable.
Frequently Asked Questions
How do I get the fiscal quarter from a fiscal month?
Once you have the fiscal month (1–12), the fiscal quarter is simply =ROUNDUP(fiscal_month/3,0). For example, fiscal month 9 gives quarter 3. Alternatively, you can use =CEILING(fiscal_month/3,1).
What if my fiscal year starts in April?
Replace the start month with 4 in the formula: =MOD(MONTH(A2)-4,12)+1. April becomes fiscal month 1, May becomes 2, and so on.
Can I use this formula for a fiscal year that starts on a day other than the 1st?
No, the formula assumes the fiscal year starts on the first day of the start month. If your fiscal year starts on, say, July 15, you need to adjust the date first, e.g., subtract 14 days before applying the month formula, or use a lookup table.
How do I display the fiscal month name instead of a number?
Use =TEXT(DATE(1, MOD(MONTH(A2)-start,12)+1, 1), "mmm") to get the abbreviated name, or "mmmm" for the full name. This creates a dummy date with the fiscal month number and formats it.
Does this formula work with dates in different years?
Yes, because it only uses the month part of the date. The fiscal month is independent of the year. To get the fiscal year, you need a separate formula, as described earlier.