Locked lesson.
About this lesson
Exercise files
Download this lesson’s related exercise files.
10-03-What If Analysis Data Tables-Start.xlsx11.9 KB 10-03-What If Analysis Data Tables-Complete.xlsx
13 KB 10.03 what-if-analysis-data-tables - Exercise.docx
53 KB Exercise - Data Tables.xlsx
29.6 KB 10.03 what-if-analysis-data-tables - Exercise solution.docx
155.2 KB Exercise Solution - Data Tables.xlsx
30.6 KB
Quick reference
What-If Analysis: Data Tables
Create Data Tables to view results based on one or two variables.
When to use
We create a one- or two-variable data table whenever we want to see what our results will be with variable inputs.
Instructions
Data Tables can be useful to view results with variable inputs. We can create one or two variable data tables.
In our example, we will be using the PMT function again to calculate the monthly payments on a loan. We will then create a one and two-variable data table to see what our monthly payment will be if we have a varying loan amount and interest rate.
The PMT Calculation
We first need to calculate our monthly payments using PMT.
One-Variable Data Table
First, we will create a one-variable data table so we can see what our monthly payment will be if the interest rate varies. We need to include the result of the PMT calculation in our data table.
- Click in cell C16 and type =C10 to link to the calculation.
- Select the PMT calculation and all the variable interest rates.
- From the Data tab, in the Forecast group, click What-If Analysis and select Data Table.
As this is a one-variable data table, we only need to define one set of input values.
- Click in Column input cell.
- Select the interest rate cell from the table.
- Click OK.
We can check our calculations are correct by referring to the known values in the input table.
Two-Variable Data Table
Next, we will create a two-variable data table. This time, we will use both the column and the row input cells to build our table.
- Click in cell B16 and type =C10 to link to the calculation.
- Select the data table including the PMT calculation.
- From the Data tab, in the Forecast group, click What-If Analysis and select Data Tables.
As this is a two-variable data table, we need to define two sets of input values.
- Click in Column input cell.
- Select the interest rate cell from the table.
- Click in the Row input cell.
- Select the loan amount cell from the table.
- Click OK.
Hints & tips
- To hide the PMT calculation, select the cell and press CTRL+1. On the Number tab, select Custom and add ;;; to the Type field.
Lesson notes are only available for subscribers.