Build a Rolling 12-Month Financial Summary Table in Excel

Get a complete Excel layout and dynamic SUMIFS formulas for a rolling 12-month financial summary that updates automatically as you add new monthly actuals.

Text prompt for Gemini and ChatGPT

You get: Sheet Setup & Anchor Cell, summary Table Layout and step-by-Step Verification

Prompt

Prompt
Act as a senior financial analyst and Excel specialist. Build a rolling 12-month financial summary table that automatically shifts its date window as new monthly actuals are added, without manual range edits.

First, ask me 3 short numbered questions about my workbook: (1) the name of my raw data tab and which columns hold the date, category, and amount, (2) whether my dates are exact transaction dates or first-of-month dates, and (3) the main revenue and expense categories I want to track. Wait for my answers before building the table.

Rules:
- Use dynamic SUMIFS formulas paired with EOMONTH and EDATE so the 12-month window shifts automatically based on a single anchor date cell.
- Include a total column and a prior-month variance column.
- Never use volatile functions like OFFSET or INDIRECT.
- Provide exact cell references and drag-ready formulas with proper dollar-sign locking.

Output format:
1. Sheet Setup & Anchor Cell (exact cell coordinates and formula for the latest month)
2. Summary Table Layout (Markdown table showing row labels, column headers, and exact formulas)
3. Step-by-Step Verification (how to test that adding a new month shifts the window)

Note: This is a spreadsheet layout guide, not professional accounting advice; consult a CPA for formal reporting. State any assumptions about date formatting or missing categories.

Example output

Building the rolling 12-month summarySetup, layout and verification in Excel
  1. Create Summary tab and anchor cellStep 1B2 uses EOMONTH(MAX(Transactions!A:A), 0) to find the latest month
  2. Lay out categories and month headersStep 2Categories in A5:A8, months in B4:M4, oldest to latest
  3. Fill SUMIFS actuals and totalsStep 3SUMIFS in B5:M8, 12-month total in N, variance in O
  4. Verify with a test rowStep 4Add 5000 for Software Revenue and confirm headers and totals update

Example for: a small SaaS company tracking monthly actuals on a tab named Transactions with Date in column A, Category in column B, and Amount in column C.

1. Sheet Setup & Anchor Cell

Create a new tab named Summary. In cell B2, enter the anchor formula that automatically finds the latest month in your raw data:
=EOMONTH(MAX(Transactions!A:A), 0)
Format B2 as mmm-yyyy.

2. Summary Table Layout

Place your category names in A5:A8. Put the rolling 12-month headers in B4:M4, starting with the oldest month in B4 and ending with the latest month in M4.

CellPurposeFormula
M4Latest Month Header=B2
B4Oldest Month Header (drag across to L4)=EOMONTH($B$2, -(12-COLUMN()+1))
B5First Category Actuals (drag across B5:M8)=SUMIFS(Transactions!$C:$C, Transactions!$B:$B, $A5, Transactions!$A:$A, ">="&EOMONTH(B$4,-1)+1, Transactions!$A:$A, "<="&B$4)
N5Rolling 12-Month Total (drag down to N8)=SUM(B5:M5)
O5Month-over-Month Variance (drag down to O8)=M5-L5
3. Step-by-Step Verification
  1. Add a test row to Transactions with next month's date, category Software Revenue, and amount 5000.
  2. Confirm cell B2 updates to the new month.
  3. Confirm M4 now displays the new month and B4 drops the oldest month.
  4. Confirm N5 recalculates the rolling 12-month total without editing any formulas.

Assumptions: Dates in Transactions!A:A are valid Excel dates, and category names in Summary!A5:A8 match Transactions!B:B exactly.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Asks 3 targeted questions first so formulas match your exact tab names and column letters.
  • Bans volatile functions like OFFSET and INDIRECT, keeping large workbooks fast.
  • Enforces EOMONTH and SUMIFS with dollar-sign locking so formulas are immediately drag-ready.

Use in ChatGPT, Claude, or Gemini when building a monthly P&L or cash flow tracker. Have your raw data tab name, date column, and category column ready to share.

Common edits

  • Swap the variance column from Month-over-Month to Year-over-Year by comparing M5 to B5.
  • Add a 3-month trailing average column using =AVERAGE(K5:M5) next to the 12-month total.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

Excel & SpreadsheetsGemini

Build an Excel Waterfall Chart Table for Revenue or EBITDA Bridges

Get a ready-to-paste Excel table layout with exact variance formulas and helper columns so your native waterfall chart renders cleanly.

Excel & Spreadsheets

Audit financial models for hardcoded numbers and errors

Scan spreadsheet formulas and row definitions to find hidden static numbers, circular references, inconsistent logic, and broken calculations.

Excel & Spreadsheets

Build a tiered sales commission formula in Excel

Design a clean, audit-friendly tiered commission model that replaces fragile nested IF statements with scalable formulas.

Excel & SpreadsheetsGemini

Build a Two-Variable Sensitivity Table for Revenue and Margin

Get a complete Excel sensitivity table layout with dynamic formulas and conditional formatting rules to highlight break-even profit thresholds.

Excel & Spreadsheets

Build an Invoice Template in Excel or Google Sheets with Automatic Totals

You get a cell-by-cell invoice layout with exact formulas for line totals, discount, tax, due date, and a duplicate-proof invoice numbering system.

Excel & Spreadsheets

Build Excel and Google Sheets Formulas for Workdays, Ages and Deadlines

You get working date formulas for your exact layout, such as workdays, deadlines, ages and month offsets, with a holiday table, locale pitfalls and a test row.