Skip to main content
March 23, 2026/5 min read

Excel Data Tables

Master Excel What-If Analysis with Data Tables

What-If Analysis Tools Overview

Data Tables

Show the range of effects of one or two different variables on a formula. Perfect for scenario analysis and forecasting.

Goal Seek

Works backwards from a desired result to find the input value needed. Useful for target-based calculations.

Data Tables and other advanced tools like Goal Seek are covered comprehensively in our NYC Excel classes. For professionals outside New York, explore and compare the best Excel classes near you or join our highly-rated online Excel classes.

Data Tables

Data Tables represent one of Excel's most powerful What-If Analysis tools, located within the Forecast group on the Data tab alongside Goal Seek. While Goal Seek helps you work backwards from a desired outcome to find the required input, Data Tables work forward—showing you the range of outcomes when one or two variables change in your formula. This capability makes Data Tables indispensable for financial modeling, scenario planning, and risk analysis in professional environments.

Think of Data Tables as your analytical crystal ball. Rather than manually changing variables and recording results dozens of times, Data Tables automate this process, instantly generating comprehensive result matrices. This functionality proves especially valuable when presenting multiple scenarios to stakeholders or when you need to quickly assess how sensitive your model is to key assumptions.

One-Variable Data Table

Let's explore this concept through a practical mortgage scenario that many professionals encounter. Imagine evaluating a $500,000 loan at 5% interest, structured as a 30-year mortgage requiring 360 monthly payments. Using Excel's built-in financial functions, we calculate the monthly payment at $2,684.11.

When you examine the underlying formula (press F2 to view), you'll see we're using Excel's PMT function: =PMT(interest_rate/12, number_of_payments, loan_amount). The division by 12 converts the annual interest rate to a monthly rate, ensuring our payment calculation aligns with the monthly payment schedule. This attention to time period consistency is crucial in financial modeling.

Now here's where Data Tables shine. Rather than manually testing different interest rates—3%, 3.5%, 4%, 4.5%, 5%, 5.5%—and recalculating each scenario individually, we can generate all results simultaneously. This approach not only saves time but eliminates the risk of manual errors that can undermine your analysis.

To create the Data Table effectively, proper selection is critical. Your selection must include both the formula cell and all variable values you want to test. Common selection mistakes include: omitting the formula (leaving you with no calculation reference), excluding the variable list (providing no scenarios to test), or selecting only partial ranges. The complete Data Table encompasses both the payment formula and your range of interest rates.

Navigate to Data → What-If Analysis → Data Table to access the dialog box. The interface presents two straightforward questions that determine how Excel processes your scenarios. First: Are your test variables arranged in a row or column? In our example, the interest rates are clearly arranged vertically in a column. Second: Which cell in your original formula should be replaced with each test value? Here, that's cell C15, containing our original 5% interest rate.

Once you click OK, Excel performs the heavy lifting, systematically substituting each interest rate into the formula and calculating the corresponding monthly payment. The result is an instant comparison showing how interest rate variations impact your monthly obligation—invaluable information for loan shopping or budget planning.

Mortgage Example Parameters

$500,000
Loan Amount
5%
Base Interest Rate
360
Payment Months
$268,411
Monthly Payment
PMT Function Formula

The Excel PMT function calculates monthly payments by dividing the annual interest rate by 12 for monthly periods, using 360 total payments for a 30-year mortgage term.

Interest Rate Scenarios for Data Table

3.0%
3
3.5%
3.5
4.0%
4
4.5%
4.5
5.0%
5
5.5%
5.5

Creating a One-Variable Data Table

1

Select the Complete Data Table

Include both the formula and all variable interest rates in your selection. Avoid partial selections that exclude either component.

2

Access Data Table Function

Navigate to Data tab, click Forecast group dropdown, and select Data Table to open the dialog box.

3

Configure Input Parameters

Identify if variables are in rows or columns, then specify the cell location that contains the value to be replaced in the original formula.

4

Execute Calculation

Click OK to let Excel automatically substitute the original value with each variable and calculate all scenarios.

Two-Variable Data Table

Two-variable Data Tables expand this concept exponentially, allowing you to test how two different inputs simultaneously affect your outcome. This advanced functionality is particularly powerful for investment analysis, where multiple factors typically influence results.

Consider an investment scenario where someone contributes $40,000 expecting a 2% annual return over 10 years, yielding $48,760 total. But what if both the initial investment amount and the annual return rate could vary? A two-variable Data Table can model all combinations instantly.

The setup requires careful formula management. Copy your original calculation formula to the intersection cell of your Data Table—this becomes your reference point. When you press F2 on this copied formula, verify it still references your original input cells. This step ensures Excel knows which values to replace during the Data Table calculation.

Selection for two-variable tables follows the same principles but with expanded scope: include your formula and both sets of variables. Your results will populate the grid intersection points, creating a comprehensive results matrix.

The Data Table dialog now requires both input specifications. For our investment example, if testing different initial investment amounts (40K, 50K, 60K, 70K, 80K) arranged in rows, specify the Row Input Cell as your original investment amount cell. For annual return rates (1%, 2%, 4%, 6%, 8%, 10%) arranged in columns, specify the Column Input Cell as your original return rate cell.

Execute the command, and Excel generates a complete results matrix showing investment outcomes for every combination. You can instantly see, for instance, that $60,000 invested at 6% annually yields significantly different results than $40,000 at 10%—insights that inform both investment strategy and risk assessment.

Investment Growth Example

$40,000
Initial Investment
2%
Annual Growth Rate
10 years
Investment Period
$48,760
Total Return

One-Variable vs Two-Variable Data Tables

FeatureOne-VariableTwo-Variable
Variables TestedSingle inputTwo inputs simultaneously
Input ConfigurationColumn OR Row input cellBoth Column AND Row input cells
Results DisplayLinear list formatGrid/matrix format
Use CaseInterest rate scenariosInvestment amount + return rate
Recommended: Choose two-variable tables when you need to analyze the combined impact of multiple changing parameters on your formula results.

Investment Amount Variables

40K
40,000
50K
50,000
60K
60,000
70K
70,000
80K
80,000

Annual Return Rate Variables

1%3%
2%6%
4%13%
6%19%
8%26%
10%32%
Cell Reference Preservation

When copying formulas for data tables, copy from inside the cell to maintain proper cell referencing. This ensures the data table correctly identifies which values to replace in calculations.

Two-Variable Data Table Setup

0/4

Recap

Data Tables transform static Excel models into dynamic analytical powerhouses. By automating scenario testing, they eliminate manual calculation errors while providing comprehensive result ranges that support informed decision-making. Whether you're analyzing mortgage options, investment strategies, or business forecasts, Data Tables deliver the analytical depth today's professionals require. Master this tool, and you'll find yourself approaching complex problems with greater confidence and precision.

Data tables show the range of effects of one or two different variables on a formula
This fundamental concept enables powerful scenario analysis and forecasting capabilities in Excel, making it easier to visualize how changing inputs affect calculated outcomes.

Key Takeaways

1Data Tables are part of Excel's What-If Analysis tools found in the Forecast group on the Data tab, alongside Goal Seek functionality.
2One-Variable Data Tables test how a single changing input affects a formula result, requiring either a column or row input cell specification.
3Two-Variable Data Tables simultaneously test two different inputs, requiring both column and row input cell configurations for comprehensive scenario analysis.
4Proper data table selection must include both the formula and all variable values to ensure accurate calculation and result placement.
5The PMT function demonstrates practical data table application by calculating mortgage payments across different interest rate scenarios using monthly periods.
6Investment growth analysis showcases two-variable capabilities by testing combinations of initial amounts and annual return rates over fixed time periods.
7Cell reference preservation is critical when copying formulas to data tables, requiring copying from within the cell to maintain proper variable substitution.
8Data tables automatically generate comprehensive scenario grids, eliminating manual recalculation needs and providing instant what-if analysis results.

RELATED ARTICLES