Roll Monthly Columns Up to Quarters and Years in Excel

A three-year forecast has 36 monthly columns. The board wants it by quarter and by year. The analyst builds a summary tab where Q1 FY27 is =SUM(Monthly!C10:E10), Q2 is =SUM(Monthly!F10:H10), and so on for twelve quarters and three years. It works until someone inserts a column for a new month at the front, and every quarter shifts by a month without an error.

Rolling monthly columns up to quarters and years is a summary step every forecast needs, and it is where many models go quietly wrong. Hand-picked ranges break, and summing every line ignores that balances, rates and headcount do not add up. This post builds roll-ups in Excel 2021 or 365 that are driven by dates and handle each type of line correctly.

Keep the roll-up on its own tab

Interleaving quarter columns between months (Jul, Aug, Sep, Q1, Oct…) looks tidy and breaks things. Formulas no longer fill right across the monthly block, any window that counts columns picks up a subtotal, and a rolling 12 total becomes eleven months plus a quarter. Keep the monthly tab purely monthly and put quarters and years on a summary tab with the same row layout, so row 10 is revenue on both. Anchor rows match across tabs is what makes the roll-up formulas identical on every row.

Quarter-end headers and one SUMIFS

On the summary tab, put real quarter-end dates across the top: 30 September 2026, 31 December 2026, and so on. Each cell sums the monthly columns whose header falls in that quarter:

=SUMIFS(Monthly!$C10:$AL10,
        Monthly!$C$4:$AL$4, ">"&EOMONTH(D$4,-3),
        Monthly!$C$4:$AL$4, "<="&D$4)

D4 is the quarter-end. The window is the three months after the quarter-end before it, up to and including this one. Fiscal years work the same way with a year-end header and -12. With a July year start, the year-end headers are 30 June 2027, 2028 and 2029, and the quarter-ends fall naturally into fiscal quarters.

The formula never references a column by position. Insert, delete or move months on the monthly tab and every quarter still sums the right three. It requires real month-end dates in the monthly header row; date headers are real dates for exactly this.

Flows, balances, rates and counts

Not every line rolls up by summing. Before writing a formula, classify each row:

Line typeExamplesQuarter value
FlowRevenue, costs, capex, cash flowSum of the months
BalanceCash, receivables, debt, equityValue at quarter-end
Rate or ratioGross margin, DSO, growth %Recalculate from the rolled-up flows and balances
CountHeadcount, customers, storesQuarter-end value, or average for cost per head

Summing a balance sheet line across three months triples it. Averaging three monthly margins weights a weak month the same as a strong one. Both errors appear in board packs more often than they should.

Balances take the value in the quarter-end column:

=XLOOKUP(D$4, Monthly!$C$4:$AL$4, Monthly!$C10:$AL10)

Averages for headcount or average balances use AVERAGEIFS with the same window as the SUMIFS.

Ratios are recalculated on the summary tab from rolled-up numbers: quarterly gross margin is quarterly gross profit over quarterly revenue, never the average of three monthly margins.

Add a column on the monthly tab that holds the line type (Flow, Balance, Average, Ratio), and use one formula on the summary tab that switches on it:

=SWITCH($B10,
  "Flow",    SUMIFS(Monthly!$C10:$AL10, Monthly!$C$4:$AL$4, ">"&EOMONTH(D$4,-3), Monthly!$C$4:$AL$4, "<="&D$4),
  "Balance", XLOOKUP(D$4, Monthly!$C$4:$AL$4, Monthly!$C10:$AL10),
  "Average", AVERAGEIFS(Monthly!$C10:$AL10, Monthly!$C$4:$AL$4, ">"&EOMONTH(D$4,-3), Monthly!$C$4:$AL$4, "<="&D$4),
  "")

Ratio rows keep their own formulas. Now one formula fills the whole summary block, and the rule for each line is visible in column B.

Annual columns from the same pattern

Put the fiscal year-end dates in the next columns of the same header row and use -12 instead of -3. Better, store the window length in a row above the headers (3 for quarter columns, 12 for year columns) and reference it:

">"&EOMONTH(D$4,-D$3)

One formula covers quarters and years. A year-to-date column is the same idea with a from-date at the start of the fiscal year, covered in the YTD, MTD and QTD post.

Check the roll-up ties

Two checks belong on the summary tab:

  • The sum of the four quarters equals the year, for every flow line.
  • The fiscal-year total for each flow equals the sum of its twelve monthly columns.

If either fails, a month header is wrong (a text date, or a first-of-month date mixed in with month-ends) or a line is classified wrong.

Where it breaks

Text headers on the monthly tab. SUMIFS compares the window against text and returns zero. =ISNUMBER(Monthly!C4) on each header finds them.

Summary headers that are not period-ends. If a quarter column is headed 1 October instead of 31 December, the window runs from August to 1 October and sums the wrong months. Build the summary headers with EOMONTH from one start date, =EOMONTH(FYStart,2) then =EOMONTH(D4,3) across.

Partial years. The first and last fiscal years in a forecast often have fewer than twelve months. Add a month count beside each annual column so a nine-month year is not read as a decline.

Ratios summed by habit. The fill-right habit puts a SUM in a margin row. The line type column and a check that recalculates the ratio both catch it.

Similar Posts