Data Tables in What-If Analysis
Data Tables in Excel’s What-If Analysis feature help you explore the impact of changing one or two variables on your results. They are useful for testing scenarios, forecasting, and sensitivity analysis in a compact, visual format.
Types of Data Tables
- One-Variable Data Table: Examines how changing one input affects a result.
- Two-Variable Data Table: Examines how changing two inputs simultaneously affects a result.
How to Use a One-Variable Data Table
- Set Up Your Data
- Create a formula that depends on one input.
Example:
Profit = (Sales Price × Units Sold) - Fixed Costs
Sales Price Profit 80 90 100 110 120 In this case, Profit depends on Sales Price. - Create a formula that depends on one input.
- Enter the Formula
- Place the formula in a separate cell (e.g.,
C1
).
- Place the formula in a separate cell (e.g.,
- Set Up the Table
- List the input values (Sales Price) in a column below the header.
- Apply the Data Table
- Highlight the table range, including the formula cell (e.g.,
B1:C6
). - Go to the Data tab, click What-If Analysis, and select Data Table.
- In the Column Input Cell box, specify the cell that contains the input variable (Sales Price).
- Click OK.
- Highlight the table range, including the formula cell (e.g.,
How to Use a Two-Variable Data Table
- Set Up Your Data
- Create a formula that depends on two inputs.
Example:
Profit = (Sales Price × Units Sold) - Fixed Costs
- Create a formula that depends on two inputs.
- Here, Profit depends on both Sales Price and Units Sold.
- Enter the Formula
- Place the formula in a cell at the top-left corner of the table (e.g.,
B1
).
- Place the formula in a cell at the top-left corner of the table (e.g.,
- Set Up the Table
- List one input variable (Units Sold) vertically in the first column.
- List the other input variable (Sales Price) horizontally in the first row.
- Apply the Data Table
- Highlight the table range, including the formula cell and input values (e.g.,
B1:F6
). - Go to the Data tab, click What-If Analysis, and select Data Table.
- In the Row Input Cell, specify the cell containing the horizontal input (Sales Price).
- In the Column Input Cell, specify the cell containing the vertical input (Units Sold).
- Click OK.
- Highlight the table range, including the formula cell and input values (e.g.,
Tips for Using Data Tables
- Ensure the formula references the input variables properly.
- Use descriptive headers to make your table easy to understand.
- Combine Data Tables with Conditional Formatting to highlight trends or key results.
Advantages of Data Tables
- Quickly test multiple scenarios in a single view.
- Automatically updates when the original formula or inputs change.
- Saves time compared to manually calculating each scenario.
Data Tables are a powerful way to analyze the effects of variable changes on your results, making them ideal for decision-making and forecasting.