Extracting Quarters from Dates in Excel: A Comprehensive Guide
In Excel, dates are stored as serial numbers, which can make it challenging to extract specific date components like quarters. However, with the right formula, you can easily extract the quarter from a date. This guide will walk you through the process step-by-step, ensuring you understand how to use Excel's built-in functions to your advantage.
Understanding Quarters in Excel
Before we dive into the formula, let's clarify how Excel defines quarters. In Excel, a quarter is a three-month period, typically corresponding to the following date ranges:
- Q1 (January - March)
- Q2 (April - June)
- Q3 (July - September)
- Q4 (October - December)
Now that we're on the same page, let's explore the formula to extract the quarter from a date.

The Formula to Extract Quarter from Date
The formula to extract the quarter from a date in Excel is straightforward. It uses the FLOOR function to divide the date by 90 and then adds 1. Here's the formula:
=FLOOR(([Date])/90)+1
In this formula, replace [Date] with your actual date cell reference. For example, if your date is in cell A2, the formula would look like this:

=FLOOR((A2)/90)+1
Breaking Down the Formula
The FLOOR function rounds a number down to the nearest integer. Dividing the date by 90 gives us the quarter number, but since Excel uses 1 as the first quarter, we need to add 1 to the result.
Using the Formula: Step-by-Step
Let's say you have the following dates in column A (A2:A10):

| Date |
|---|
| 01/15/2022 |
| 04/22/2022 |
| 07/18/2022 |
| 10/12/2022 |
| 12/31/2022 |
To extract the quarter from these dates, follow these steps:
- In cell B2, enter the formula:
=FLOOR((A2)/90)+1 - Press Enter. The cell should display '1', indicating that the date corresponds to the first quarter (Q1).
- Drag the formula down to copy it for the rest of the dates (B3:B10).
The result should look like this:
| Date | Quarter |
|---|---|
| 01/15/2022 | 1 |
| 04/22/2022 | 2 |
| 07/18/2022 | 3 |
| 10/12/2022 | 4 |
| 12/31/2022 | 4 |
Formatting the Results
To make the results more readable, you can format the cells containing the quarter numbers as text. Here's how:
- Select the cells containing the quarter numbers (B2:B10).
- Right-click and select "Format Cells" (or press Ctrl + 1).
- In the "Number" tab, select "Text".
- Click "OK".
The result should now display the quarters as text (Q1, Q2, Q3, Q4):
| Date | Quarter |
|---|---|
| 01/15/2022 | Q1 |
| 04/22/2022 | Q2 |
| 07/18/2022 | Q3 |
| 10/12/2022 | Q4 |
| 12/31/2022 | Q4 |
And there you have it! You've successfully extracted the quarter from dates in Excel. This formula is a powerful tool for analyzing and organizing data based on quarters.





















