Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Previous Quarter End Date? Formula & Guide

· 4 min read · Home Tech

In this article
  1. Formula
  2. Worked Example
  3. How to Use the Formula in Your Sheet
  4. Common Mistakes and Fixes
  5. Alternative Formulas
  6. When to Use This
  7. Frequently Asked Questions

To find the end date of the previous quarter in Excel, use the formula DATE(YEAR(TODAY()), MONTH(TODAY())-MOD(MONTH(TODAY())-1,3)-1, 0) for the current date, or replace TODAY() with a cell reference. This returns the last day of the prior quarter (e.g., if today is May 20, 2025, it returns March 31, 2025).

in d | Date | - | 2025-05-20 | 0
out prev_q_end | Previous Quarter End | date | DATE(YEAR(d), MONTH(d)-MOD(MONTH(d)-1,3)-1, 0) | 0

Formula

The formula uses Excel's DATE function to construct a date from year, month, and day. The key is to calculate the month number of the last month of the previous quarter, then use day 0 (which Excel interprets as the last day of the previous month).

General formula: DATE(YEAR(date), MONTH(date) - MOD(MONTH(date)-1, 3) - 1, 0)

  • date – the reference date (e.g., a cell like A1, or TODAY()).
  • YEAR(date) – the year of that date.
  • MONTH(date) – the month number (1-12).
  • MOD(MONTH(date)-1, 3) – gives the offset from the start of the current quarter (0, 1, or 2).
  • Subtracting that offset and then 1 – moves to the last month of the previous quarter.
  • Day 0 – returns the last day of that month.

For example, if the date is May 20, 2025: MONTH=5, MOD(5-1,3)=1, so month = 5 - 1 - 1 = 3. DATE(2025, 3, 0) = March 31, 2025.

Worked Example

Using the default date of May 20, 2025:

  1. Start with date: May 20, 2025
  2. YEAR = 2025
  3. MONTH = 5
  4. MOD(5-1, 3) = MOD(4,3) = 1
  5. Month for previous quarter end = 5 - 1 - 1 = 3
  6. DATE(2025, 3, 0) = March 31, 2025

So the previous quarter end is March 31, 2025, which matches the calculator output.

How to Use the Formula in Your Sheet

You can use this formula in any cell. Replace date with a cell reference (e.g., A1) or with TODAY() to always calculate based on the current date. If you want the previous quarter end relative to a date in another cell, just point to it.

For a date in cell A1, the formula is: =DATE(YEAR(A1), MONTH(A1)-MOD(MONTH(A1)-1,3)-1, 0)

Format the result cell as a date (e.g., mm/dd/yyyy). If you see a number like 45700, it's just the date serial number – change the cell format to Date.

Common Mistakes and Fixes

  • Wrong month calculation: Using MOD(MONTH(date),3) instead of MOD(MONTH(date)-1,3) gives wrong results for quarter boundaries (e.g., for January, it gives 1 instead of 0).
  • Day 0 confusion: Some users use day 1 and then subtract 1 day, which works too, but day 0 is simpler.
  • Date format: If the result shows as a number, apply a date format.
  • Leap years: The formula automatically handles February 29 because DATE(2024, 2, 0) returns February 29, 2024.

Alternative Formulas

If you prefer a different approach, you can use EOMONTH to get the end of the month, then subtract months:

=EOMONTH(date, -MOD(MONTH(date)-1, 3) - 1)

This uses the EOMONTH function to return the last day of a month that is a specified number of months before or after a start date. It's shorter and often easier to read.

When to Use This

This formula is useful for financial reporting, quarterly summaries, or any time you need to reference the end of the previous quarter. For example, you might want to compare this quarter's sales to last quarter's, or calculate a date range for a report.

If you need the start date of the previous quarter, use: =DATE(YEAR(date), MONTH(date)-MOD(MONTH(date)-1,3)-3, 1) – that gives the first day of the previous quarter.

Frequently Asked Questions

How do I get the previous quarter start date?

Use =DATE(YEAR(A1), MONTH(A1)-MOD(MONTH(A1)-1,3)-3, 1). For May 20, 2025, that returns January 1, 2025.

Does this work for fiscal years that don't start in January?

No, this formula assumes calendar quarters (Jan-Mar, Apr-Jun, etc.). For fiscal quarters, you'd need to adjust the month offset based on your fiscal year start.

What if my date is in text format?

Convert it to a real date using DATEVALUE or use the DATE function directly. For example, if A1 contains "2025-05-20" as text, wrap it: =DATE(YEAR(DATEVALUE(A1)), ...).

Can I use this in Google Sheets?

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

How do I get the current quarter end date?

Use =DATE(YEAR(A1), MONTH(A1)-MOD(MONTH(A1)-1,3)+3, 0) – that gives the last day of the current quarter.