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 Personify Health
White Papers
Provided by Anaplan
White Papers
Provided by UJET
Further Reading
A recent ransomware attack illustrates why an attacked company that pays ransom shouldn’t expect the hackers to live up to their end ...
Manually updating reports wastes valuable time. Automating your report delivery with Power Query can save hours of repetitive work, reduce ...
The Advanced Filter in Excel transforms routine data tasks into powerful analysis — perfect for finance, accounting, or anyone managi...
Unlock seamless team collaboration in Excel. The Shared Workbook feature allows multiple users to access and input data simultaneously, dra...
Finance pros know that even one small formula error can cause major reporting headaches. Microsoft Excel includes built-in auditing feature...
With open enrollment underway, now’s the perfect time for Finance to assess HSA employer contributions – not only to boost participatio...