# Get fiscal quarter from date

If you want to calculate the fiscal quarter from a date, and the fiscal quarter starts in a month other than January, you can use a formula based on the CHOOSE function.

*Note: if you just need to calculate a "normal" quarter based on a quarter system that starts in January, you can use this simpler formula.*

In the example shown, the formula in cell D5 is:

This formula returns a number, 1-4 that corresponds to a quarter system that begins in April and ends in March.

The choose function uses the first argument to "select" remaining elements. For example, in a scheme where 1 = small, 2 = medium, and 3 = large, this formula will "map" the number 2 to "medium".

=CHOOSE(2,"small","medium","large")

In the case of fiscal quarters, we can use this same idea to map any incoming month (1-12) to one of 4 quarter values. We just need to use the MONTH function to get the month number as the first argument, then provide 12 numbers (one for each month of the year) that are carefully ordered to reflect the fiscal year desired:

### Adding a Q and year

If you want the quarter number to include a "Q" with a year value, you can concatenate:

Will return values like: "Q1 - 2016", "Q2 - 2016", etc. This works for fiscal years with a January start. If the starting month is different from January, you can use an expression like this to calculate the fiscal year:

This formula is explained in more detail here.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.