Build Rolling Forecasts with OFFSET and COUNTA
A rolling forecast in Excel helps you stay current by updating automatically as you enter new data, unlike traditional static forecasts, which lose relevance over time. With Excel‘s OFFSET and COUNTA functions, you can build models that automatically update as you enter new data.
Set Up Your Excel Rolling Range with OFFSET & COUNTA
How to boost accuracy in three quick steps:
Step 1: Structure Your Forecast Data
Begin by organizing your data chronologically. For example, enter monthly sales totals in column B starting at cell B2. Each new row should represent the next time period (e.g., February in B3, March in B4, etc.).
Step 2: Use OFFSET and COUNTA to Reference the Latest Data
To pull the last 12 months of data, use this formula:
=OFFSET(B2, COUNTA(B:B)-12, 0, 12, 1)
How it works:
- COUNTA(B:B) counts the non-blank cells in column B.
- OFFSET(B2, …) starts from B2 and moves down to the latest entry.
- The formula returns a dynamic range of the 12 most recent values.
Step 3: Wrap the OFFSET Formula in a Calculation
Once your dynamic range is defined, plug it into a calculation like:
=AVERAGE(OFFSET(B2, COUNTA(B:B)-12, 0, 12, 1))
Or use:
=TREND(OFFSET(B2, COUNTA(B:B)-12, 0, 12, 1))
This creates a moving average or trendline that automatically updates as new data is entered, eliminating the need to adjust cell references manually.
Step 4: Make Your Model More Transparent with Named Ranges
To make your formulas cleaner and easier to manage:
- Go to Formulas > Name Manager.
- Click New, then assign a name like Rolling_12_Months.
- Paste your OFFSET formula into the “Refers to” field.
Now you can use “Rolling_12_Months” in your formulas and charts for better readability.
Key Takeaways
This method is great for monthly revenue tracking, year-over-year comparisons, and rolling cost estimates. It also helps prevent analysis based on stale data, keeping stakeholders informed with the most current information. Here are practical tips for success:
- Avoid blank rows or cells within your data range.
- Test your OFFSET formulas on smaller datasets first.
- Combine with conditional formatting to highlight anomalies in your forecast.
By using OFFSET and COUNTA, you’ll spend less time updating formulas and more time acting on the insights they produce.
For more Excel tutorials, quick-tip videos and articles, check out LearnExcelNow.
Free Training & Resources
White Papers
Provided by Anaplan
White Papers
Provided by UJET
Further Reading
Finance technology is changing all the time. Trends come and go. But the underlying goals of finance teams don’t change much at all. ...
It’s easy to take your company’s payroll technology for granted, that is, until something goes wrong. As your business grows and the ex...
The Advanced Filter in Excel transforms routine data tasks into powerful analysis — perfect for finance, accounting, or anyone managi...
The success of Finance depends on an accurate and efficient A/P department. That includes every step of invoice processing – receivin...
Cloud-based A/R is rapidly becoming a must-have for businesses of all sizes. But where is A/R technology heading, and what should you expec...
Trying to figure out where a number came from? Excel’s Trace Precedents feature lets you map formulas visually. This is perfect for audit...