Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (2024)

Excel is often used as a forecasting tool – but specifically, which functions can aid forecasting? By Liam Bastick, Director with SumProduct Pty Ltd.

Query

I have a lot of historical company data and I have been asked to create some forecast projections in Excel. Any tips please..?

Advice

Lies, damned lies and statistics: it doesn’t take long for us all to become ensnared in the dubious world of Excel forecasting. I could write a book on useful Excel functions / functionalities that can assist, and another weighty tome on the perils of using such techniques.

The main problems are to know which techniques to use when (consult a statistician if unsure) and how to interpret the ensuing data. Here, I plan to keep it simple, but please be aware that in this area of modelling, like many other areas, GIGO still applies – Garbage In, Garbage Out.

To aid with this month’s article, please refer to the attached Excel file, and note that in order to keep it simple, we will only be considering linear relationships (i.e. if we plotted the points on a graph, we should find that we could draw a straight line through the plot points).

Time Series Forecasting

A common forecasting technique is to take existing data, say sales, and extrapolate forward. Excel has a very simple function for doing this: TREND.

TREND(known_y’s,known_x’s,new_x’s,constant) projects assuming that there is a relationship between two sets of variables x (independent variable – the inputs) and y (dependent variable – the output), through a formula y = ?x + c, i.e. the equation of a straight line (? is the gradient of the line and c is the y-intercept).

Here, time is our independent variable (x) and sales is our dependent variable (y). We only specify the constant if we want to force c in the equation (not common – it will usually be left blank).

Let’s consider an example (in the Excel file):

Problem

Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (1)

Solution with TREND

Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (2)

Here, we have 12 months of sales data and want to project what the sales will be for the following 12 months. We can enter a straightforward formula into each cell, e.g. G21 could be

or in one go, we could highlight cells G21:G32 and type in the array formula

=TREND(G9:G20,F9:F20,F21:F32)

and press CTRL + SHIFT + ENTER (this will insert the braces, ‘{’ and ‘}’, automatically). Either way, you would get the solution pictured above.

The problem here is what happens if you have seasonality (i.e. the sales go up and down during the first 12 months)? TREND would not accurately account for this as it assumes the relationship between time and sales is linear. A common “bulldozed mathematics” technique to counter this is given as an extension of this example in the Excel file – but it is a highly arbitrary solution.

Other Functions: Finding the Gradient ?, the Slope c and the LINEST Function

For transparency, using TREND alone may prove insufficient. End users might wish to assess the gradient of the line, the intercept and even the “goodness of fit”, i.e. how well the equation matches the data.

Using another example from the Excel file:

Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (3)

Simple Example

Here, rather than use the time as in the TREND example, we can assume that sales is a function of marketing. We could use the formula SLOPE(known_y’s,known_x’s) to estimate the gradient, viz.

=SLOPE(H19:H42,G19:G42) = 1.44.

We could also use INTERCEPT(known_y’s,known_x’s) to estimate the y-intercept:

=INTERCEPT(H19:H42,G19:G42) = 8.55.

This gives us the equation y = 1.55x + 8.55.

Alternatively, this data could be plotted on a scatter chart very simply. We could then add a trend line as follows:

Excel 2003 and earlier

  • Click on the Chart;
  • Go to the Chart drop down menu and select ‘Add Trendline…’ (ALT + C + R);
  • From the ‘Add Trendline’ dialog box, select the first tab ‘Type’ and choose ‘Linear’;

Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (4)

  • From the second tab ‘Options’, tick the ‘Display Equation on Chart’ check box; and
  • Also, tick the ‘Display R-squared value on chart’ check box

Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (5)

Excel 2007 and later

  • Click on the Chart;
  • Under Chart Tools, select the ‘Layout’ tab on the Ribbon;
  • In the ‘Analysis’ group, click on ‘Trendline’;
  • Choose ‘More Trendline Options…’;
  • Under ‘Trend/Regression Type’, choose ‘Linear’;
  • Tick the ‘Display Equation on Chart’ check box; and
  • Tick the ‘Display R-squared value on chart’ check box

Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (6)

This would then give us the following chart:

Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (7)

Scatter Chart with Trendline

Note that the independent variable (input) should always be plotted on the horizontal (x) axis.

Not only does this give us the equation derived above, it also shows us the goodness of fit, , the correlation coefficient.gives us a value between zero and one, where zero means no relationship and one is perfect correlation. In this example, a correlation coefficient of 0.81 is a high correlation in practice and can be seen by how well the line approximates the data.

We do not have to use SLOPE and INTERCEPT to derive our ? and c.

LINEST(known_y’s,known_x’s) (simple version of the function) will calculate this all in one go as follows.

Returning to our earlier marketing versus sales example and referring to the Excel file as necessary, let’s highlight two cells, say H73:I73 (see file). Then type:

=LINEST(H19:H42,G19:G42)

and then press CTRL + SHIFT + ENTER (array formula). Cell H73 will calculate the slope (1.44) and I73 will derive the intercept (8.55).

The advantage of LINEST over SLOPE and INTERCEPT is it can be used to derive an equation where the dependent variable is based on a series of independent variables not just one, e.g.

y = ?1x1 + ?2x2 + ?3x3 + ?4x4 + c, etc.

The Excel file provides such an example.

Error Estimates

Where projections are used, variance analysis surely follows. In order to ascertain how well we have forecast we often use measures that estimate bias and accuracy:

  • Bias – A forecast is biased if it errs more in one direction than in the other (i.e. we under-estimate or over-estimate on a regular basis); and
  • Accuracy – Refers to the distance of the forecasts from the actual data, ignoring the direction of that error.

The idea here is that forecasting is an iterative technique and we use the outcomes from our error analysis to refine our forecasting techniques (e.g. not using all of the historical data, making ‘normalising adjustments’).

Consider the following example. For six time periods, t1 to t6, we compare actual demand at time t, Dt, with forecast demand at time t, Ft, as follows:

Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (8)

Error Estimating Example

Obviously, this is not enough data points to make a proper conclusion – the intention here is merely to provide an illustrative example.

We can consider the following measures:

  • Cumulative sum of Forecast Errors (CFE). This measures both bias and accuracy = SUM(Et) = -20;
  • Mean Absolute Deviation (MAD). This considers the magnitude of the average error = 170 / 6 = 23.33;
  • Mean Squared Error (MSE). An alternative to MAD, it takes the square of the errors and divides it by the number of observations = 5,150 / 6 = 858.33;
  • Standard Deviation (SD). A common technique to measure the ‘spread’ of the distribution, care needs to be taken if the error spread is skewed in one direction or another (e.g. if the magnitude of CFE is large) = SQRT(MSE) = SQRT(5,150 / 6) = 29.30; and
  • Mean Absolute Percentage Error (MAPE). This is the average of the percentage errors = 83.49% / 6 = 13.91%.

No one technique should be used in isolation. The user should look at what the overall summary is rather than review one metric in isolation.

Summary

We have looked at forecasting only where we believe there is a linear relationship between the independent variables (inputs) and the dependent variable (output). Other types of forecasting are quite common however: e.g. where there are logarithmic, exponential or polynomial relationships instead (in these instances plot points on a scatter chart will not tend to a straight line).

TREND is useful for forecasting ‘linear’ outputs; INTERCEPT is especially useful for deriving the linear equation necessary to generate forecasts, especially if there is more than one independent input contributing to the output.

You should consult a statistician if forecasts are to be relied upon heavily. Professional analysts will review each input and ensure there is a true rather than spurious correlation, which is way beyond the scope of this article.

But it’s a start – as long as it is viewed as that and nothing more.

More Thoughts

Forecasting Tips | SumProduct are experts in Excel Training: Financial Modelling, Strategic Data Modelling, Model Auditing, Planning & Strategy, Training Courses, Tips & Online Knowledgebase (2024)

FAQs

Does Excel perform financial analysis and Modelling? ›

Use pivot tables filtering and sorting options in Excel to summarize and derive information out of the financial data and to do Financial Analysis for your organization.

Can I learn financial modeling on my own? ›

It is possible to learn financial modeling without any mentor but there are higher chances that you might end up getting lost in the process if finance is completely a new area to you.

How to audit an Excel model? ›

Auditing tools in Excel
  1. Checking formula in the cell. Excel shortcut for that is F2 (Function 2 on your keyboard).
  2. Checking all formulas on the spreadsheet. Excel shortcut for that is Ctrl + `.
  3. Tracing precedents and dependents for the cell. ...
  4. Checking links. ...
  5. Working with comments.

Is financial modeling hard? ›

Financial modeling is considered a difficult task, even for those who work in the financial field. On the other hand, accounting is a much easier skill to acquire. Accounting is the act of recording an organization's various financial transactions.

What are Excel modeling skills? ›

Excel modeling is the process where an individual uses a spreadsheet to make quantitative predictions based on a series of underlying assumptions.

How to do financial forecasting in Excel? ›

On the Data tab, in the Forecast group, click Forecast Sheet. In the Create Forecast Worksheet box, pick either a line chart or a column chart for the visual representation of the forecast. In the Forecast End box, pick an end date, and then click Create.

What is the best practice for financial modeling in Excel colors? ›

Guidelines for Color Coding in Financial Modeling
Cell TypeExcel FormulaColor Scheme
Formulas (Calculations)=A1*A2Black
Links to Other Worksheets=Sheet2!A1Green
Links to Other Files=[Book2]Sheet1!$A$1Red
Links to Data Providers (e.g. CIQ, FactSet)=CIQ(IQ_TOTAL_REV)Dark Red
1 more row

Which choice is a best practice in financial modeling? ›

7 Best Practices for Financial Modeling
  • Choose your model. ...
  • Plan and outline your model.. Decide on a timeline, the number of quarters or years you want to project, and how much historical data you need to include. ...
  • Start with accurate data. ...
  • Keep your assumptions reasonable. ...
  • Test for accuracy. ...
  • Keep good notes.
Apr 18, 2024

What is the best practice for financial modeling in Excel use black font for all hard coded numbers and formulas and blue font for only the totals? ›

Final answer: The best practice for financial modeling in Excel is to use a black font for hard-coded numbers and a blue font for formulas. This allows a clear distinction between inputs and calculations, improving the model's readability and navigability.

What is the financial model of Excel? ›

Financial modeling excel is a representation in numbers of a company's operations in the past, present, and the forecasted future. Such Financial modeling excels are intended to be used as decision-making tools. Company executives might use them to estimate the costs and project the profits of a proposed new project.

Top Articles
Latest Posts
Article information

Author: Annamae Dooley

Last Updated:

Views: 6444

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Annamae Dooley

Birthday: 2001-07-26

Address: 9687 Tambra Meadow, Bradleyhaven, TN 53219

Phone: +9316045904039

Job: Future Coordinator

Hobby: Archery, Couponing, Poi, Kite flying, Knitting, Rappelling, Baseball

Introduction: My name is Annamae Dooley, I am a witty, quaint, lovely, clever, rich, sparkling, powerful person who loves writing and wants to share my knowledge and understanding with you.