Spreadsheet Practice

How to get the end date of the quarter in Excel

Formula (Excel and Google Sheets)

=EOMONTH(A2,MOD(3-MONTH(A2),3))

Move forward by the months left in the quarter and take the month end: =EOMONTH(A2,MOD(3-MONTH(A2),3)).

Result on the example
one result per row in B2, filled down to B6
Works in
Every current version
Google Sheets
Same formula

See it work

The formula is already in B2, filled down to B6. Change any input and the result updates, or edit the formula to experiment.

How it works

MOD(3-MONTH(A2),3) is the number of months left in the quarter: 2 in January, 0 in March, 1 in May. EOMONTH moves that many months ahead and returns the month end, which is the quarter end.

=EOMONTH(A2,MOD(3-MONTH(A2),3))

Result3/31/2026 (46112)

  1. A21/15/2026

    The value in A2.

  2. MONTH(A2)1

    MONTH: Month of a date, 1–12.

    • serial_numberA21/15/2026
  3. 3-MONTH(A2)2

    The - operator subtracts.

  4. MOD(3-MONTH(A2),3)2

    MOD: Remainder after division.

    • number3-MONTH(A2)2
    • divisor3
  5. EOMONTH(A2,MOD(3-MONTH(A2),3))3/31/2026 (46112)

    EOMONTH: Last day of the month, months away.

    • start_dateA21/15/2026
    • monthsMOD(3-MONTH(A2),3)2

In Google Sheets

The same formula works in Google Sheets: =EOMONTH(A2,MOD(3-MONTH(A2),3)). We ran it in Google Sheets mode on the same data and it returns the same results.

Other ways to do it

Each one was run on the same example sheet.

FormulaResultWhen to use it
=DATE(YEAR(A2),ROUNDUP(MONTH(A2)/3,0)*3+1,0)3/31/2026, 3/31/2026, 6/30/2026…Day 0 of the month after the quarter is the quarter's last day.

Common mistakes

  • For a fiscal year that starts in February, May or another month off the calendar quarters, use =EOMONTH(A2,2-MOD(MONTH(A2)-start_month,3)).
  • Format the result as a date.

Try it yourself

Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.

Get the end date of the quarter

In B2, return the last day of the calendar quarter of the date in A2, and fill down to B6.

Questions

How do I get the first day of the quarter?

=DATE(YEAR(A2),ROUNDUP(MONTH(A2)/3,0)*3-2,1).

How many days are left in the quarter?

=EOMONTH(A2,MOD(3-MONTH(A2),3))-A2.

Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.