To get the quarter from a date in Excel, use =ROUNDUP(MONTH(A1)/3,0). This divides the month number by 3 and rounds up, so any date from January to March returns 1, April to June returns 2, July to September returns 3, and October to December returns 4. Put your date in cell A1 and the formula in any empty cell. That is the whole trick — no lookup table or add-in required.

What You'll Need

  • Excel for Microsoft 365, Excel 2019, 2021, or Excel for Mac — the formula works in all of them.
  • A column of dates that Excel recognises as real dates, not text.
  • One empty cell for the formula result.

Step-by-Step

  1. Check that your dates are real dates. Click a date cell and look at the formula bar. If you see something like 15/03/2025 or 3/15/2025, it is a real date. If the cell is left-aligned and the formula bar shows the same text, Excel is treating it as text and the formula will fail. Convert it first with Data > Text to Columns and choose the correct date format, or re-enter it as a date. Labels in menus can differ slightly by version and region.
  2. Pick your output cell. Click an empty cell next to your first date, for example B1 if your dates start in A1.
  3. Type the formula. Enter =ROUNDUP(MONTH(A1)/3,0) and press Enter. Replace A1 with the address of your first date cell.
  4. Copy it down. Drag the fill handle (the small square at the bottom-right of the cell) down the column, or double-click it to fill to the last row of data.
  5. Format the result as a number. The result should show 1, 2, 3 or 4. If it shows a date or a decimal, select the cells and set the number format to General or Number with zero decimal places.
  6. Optional — show a label. If you want "Q1" instead of 1, wrap the formula: ="Q"&ROUNDUP(MONTH(A1)/3,0). This produces text, so sort or filter accordingly.

Common Mistakes

  • Dates stored as text. This is the most common cause of a #VALUE! error. The MONTH function needs a serial date number, not a string.
  • Using ROUND instead of ROUNDUP. ROUND(MONTH(A1)/3,0) gives the wrong answer for months 3, 6, 9 and 12 — March would round to 1 instead of staying in Q1. Always use ROUNDUP.
  • Forgetting the zero in ROUNDUP. ROUNDUP(MONTH(A1)/3) without the second argument still works in most versions, but including ,0 makes the intent clear and avoids surprises.
  • Relative references when copying across. If you copy the formula sideways instead of down, A1 shifts to B1, C1 and so on. Use $A1 if you need to lock the column.
  • Fiscal quarters. The formula above gives calendar quarters. If your company's fiscal year starts in a different month, you need an offset — see the Tips section.

Tips

  • Fiscal quarters: if your fiscal year starts in April, use =ROUNDUP(MONTH(EDATE(A1,-3))/3,0). The EDATE function shifts the date back by the number of months between the calendar and fiscal year starts. Adjust the -3 to match your fiscal offset.
  • Use a named range or table. If you convert your data to an Excel Table (Ctrl+T), formulas fill automatically as you add rows.
  • Combine with YEAR for a unique label. =YEAR(A1)&"-Q"&ROUNDUP(MONTH(A1)/3,0) gives results like 2025-Q1, useful for pivot tables.
  • Check regional settings. In some regions the date separator and order differ, but the MONTH function behaves the same as long as Excel recognises the date.

Troubleshooting

  • You see #VALUE!: the cell does not contain a real date. Test with =ISNUMBER(A1) — it should return TRUE. If FALSE, convert the text to a date.
  • You see a date like 1/1/1900: the result cell is formatted as a date. Change the number format to General.
  • The formula returns 0: the date cell is empty or contains a zero. Clear the cell or point the formula at the correct row.
  • Results look shifted by one quarter: check whether your organisation uses fiscal quarters and apply the EDATE offset described in Tips.
  • Copying gives wrong references: inspect the formula in each cell. Relative references change as you copy; use absolute references ($A$1) if the date should stay fixed.

Frequently Asked Questions

Can I get the quarter number without a formula?

Yes — you can add a helper column and type 1, 2, 3, 4 manually, but that is error-prone for large datasets. The formula is faster and updates automatically when dates change.

Does this work in Excel for Mac?

Yes. MONTH, ROUNDUP and EDATE are standard functions available in Excel for Mac and Excel for the web.

What if my dates include times?

The time portion is ignored by MONTH, so the formula still returns the correct quarter.

How do I get the quarter as text like "Q1"?

Use ="Q"&ROUNDUP(MONTH(A1)/3,0). The result is text, so it will not sort numerically unless you add a leading zero or keep a separate numeric column.

Can I use this in Google Sheets?

Yes, the same formula works in Google Sheets with the same syntax.

Why does my formula show a decimal like 1.333?

The ROUNDUP second argument is missing or set to a value other than 0. Use ,0 to round up to the nearest whole number.