Building Excel Pivot Tables for Sales Forecasting
Assume that you have a baseline of sales data and are ready to create an Excel pivot table and group the date field to forecast your sales. What now?
Suppose your table looks like the following image.
The problem is that you don’t need to forecast sales by sales rep. And you don’t need to forecast sales by day. In this case, the whole idea is to forecast sales by month. Corporate couldn’t care less who made the sale, or on which day. They don’t want to know how much George Smith sold on February 24. They want you to tell them how much your sales team will sell in January 2017. For that, you don’t need daily sales data and you don’t need salesperson data.
You do need to know monthly totals. With that information, you can generate a forecast that’s rational and credible. You’ll get the monthly totals, but first you need to build the pivot table.
- Click one of the cells in your table.
When Excel creates the pivot table, it needs to know where to find the table that contains the raw data. If you start by selecting a cell in that table, Excel locates its boundaries for you.
- Go to the Ribbon’s Insert tab and click the Pivot Table icon in the Tables group.
The dialog box shown here appears.
- Select the Existing Worksheet option button if you want the pivot table to appear on the same worksheet as the table.
Especially during initial development, it’s useful to keep the raw data and the pivot table on the same worksheet.
- Click in the Location reference edit box and then click a worksheet cell to the right of or below the table. Click OK. Your worksheet will resemble the one shown here.
When Excel creates the pivot table, it builds it to the right and down from the cell you select. If you start the pivot table to the left of or above your list, Excel will ask you if you really want to overwrite those cells.
- Click and drag the Sales Date field from the Fields section to the Rows area.
Depending on the version of Excel you’re running, Excel might add a Months field along with Sales Date to the Rows area. If so, you’ll see the sales month on the worksheet as the new pivot table’s row field.
- Click and drag the Sales Revenue field from the Fields section to the Σ Values area.
You now have a pivot table that shows a baseline of sales revenues by sales date. It should look something like the pivot table shown here.
Excel might automatically put Month into the pivot table’s rows. If you don’t want it there, just click Month in the PivotTable Fields pane’s Rows area and drag Month back up to the Fields section.
In the meantime, it’s usually a good idea to format the Values field properly. Here, that’s using the Currency format. Here are the steps:
- With the PivotTable Fields pane visible, click on the drop-down arrow next to Sum of Sales Revenue in the Σ Values area.
- Choose Value Field Settings from the shortcut menu.
- Click the Number Format button.
- Choose the Currency format.
- Adjust the number of decimal places.
- Click OK to return to the Value Field Settings dialog box, and click OK again to return to the worksheet.
If you’re using Excel 2016, which provides automatic time grouping, the pivot table should now appear as shown here. Otherwise the rows will reflect the periods used in the pivot table’s data source. If you still see individual dates, for example, instead of months, refer to the next section for information on arranging individual dates into longer periods of time.