Every business decision carries uncertainty. You want to know – what happens if sales drop by 10%? What if the interest rate changes? Excel gives you a powerful way to answer these questions without rebuilding your entire spreadsheet.
The what-if analysis in the Excel data table feature lets you test multiple scenarios instantly. It saves time, reduces errors, and helps you make smarter decisions. In this guide, you will learn how it works, when to use it, and how to set it up step by step.
What Is What-If Analysis in Excel?
What-if analysis is a built-in Excel feature. It allows you to change one or two input values and immediately see how those changes affect your output.
Think of it like a simulation tool. You do not need to create separate spreadsheets for each scenario. Instead, Excel runs all the calculations inside a single, organised table.
Excel offers three what-if analysis tools:
- Data Tables – test one or two variables across many values
- Goal Seek – find the input needed to reach a target output
- Scenario Manager – save and compare multiple sets of input values
This article focuses specifically on Data Tables, which are the most practical tool for side-by-side comparisons.
If you want to understand how data analysis tools work more broadly, you can explore what are data analysis tools to build a stronger foundation.
Turn Survey Data Into Business Decisions Faster
Technology-driven market research for faster, smarter insights.
Why Use a Data Table for What-If Analysis?
A data table gives you a visual grid of results. You enter a range of possible input values, and Excel fills in the corresponding outputs automatically.

This is especially useful when:
- You are preparing a financial model or budget
- You want to compare loan repayment options across interest rates
- You need to present multiple pricing scenarios to stakeholders
- You are running a sensitivity analysis on a business forecast
Moreover, data tables update dynamically. When your formula changes, the entire table recalculates. This makes them far more efficient than manually entering values one by one.
Understanding Search Intent
Before diving in, it helps to understand who uses this feature. Most users searching for what-if analysis in an Excel data table are:
- Finance professionals building models
- Students learning Excel for coursework
- Analysts who need to present scenario comparisons
- Business owners exploring pricing or cost strategies
Therefore, this guide walks through practical, real-world examples – not just theoretical definitions.
Types of Data Tables in Excel
Excel supports two types of data tables. Each serves a different purpose depending on how many variables you want to test.
1. One-Variable Data Table
A one-variable data table tests how one input affects one or more outputs. For example, you might test how different interest rates affect your monthly loan payment.
How it works:
- Your formula sits in a cell (e.g., PMT function for loan payments)
- You list possible input values either in a column or a row
- Excel fills in the corresponding output for each value
This is the most common type. It is clean, simple, and easy to present.
2. Two-Variable Data Table
A two-variable data table tests two inputs simultaneously. For example, you might see how different interest rates AND loan terms affect monthly payments together.
How it works:
- One variable runs along the top row
- The other runs down the left column
- The formula sits at the intersection of the row and column headers
- Excel fills in results for every combination
However, note that a two-variable table can only show one output at a time. If you need multiple outputs, you must create separate tables.
This kind of multi-variable thinking connects closely to how we analyse data – identifying relationships between inputs and outputs is at the core of any data-driven decision.
Turn Complex Datasets Into Strategic Business Growth
Enterprise-grade data processing, statistical analysis, and customized tabulations to power your insights.
Step-by-Step: Creating a One-Variable Data Table
Let us walk through a practical example. You are calculating the monthly EMI on a loan. You want to see how the EMI changes at different interest rates.
Step 1: Set Up Your Base Formula
Enter your loan details in Excel:
- Principal (B1): ₹5,00,000
- Annual Interest Rate (B2): 8%
- Loan Term in Months (B3): 60
- Monthly EMI (B4): =PMT(B2/12, B3, -B1)
This gives you the base EMI at 8%.
Step 2: List Your Input Values
In column D, list the interest rates you want to test:
- D2: 6%
- D3: 7%
- D4: 8%
- D5: 9%
- D6: 10%
- D7: 11%
- D8: 12%
Step 3: Place the Output Formula
In cell E1 (one row above and one column to the right of your first input value), enter:
=B4
This links the table to your PMT formula.
Step 4: Select the Table Range
Select the range D1:E8 – this includes the formula cell and all input values.
Step 5: Open the Data Table Dialogue
- Go to the Data tab in the ribbon
- Click What-If Analysis
- Select Data Table
Step 6: Enter the Column Input Cell
Since your interest rates are listed in a column, enter B2 in the “Column input cell” field. Leave the “Row input cell” blank.
Click OK.
Excel instantly fills in the EMI for each interest rate. You can now see all results side by side without touching your original formula.
Step-by-Step: Creating a Two-Variable Data Table
Now, let us say you also want to test different loan terms alongside different interest rates.
Step 1: Set Up the Layout
- In row 1 (starting from E1), list loan terms: 36, 48, 60, 72, 84
- In column D (starting from D2), list interest rates: 7%, 8%, 9%, 10%, 11%
- In cell D1 (the intersection corner), enter: =B4
Step 2: Select the Full Range
Select D1:I6 – the full grid, including headers and formula cell.
Step 3: Open the Data Table Dialogue
- Go to Data → What-If Analysis → Data Table
Step 4: Fill in Both Input Cells
- Row input cell: B3 (loan term)
- Column input cell: B2 (interest rate)
Click OK.
Excel fills the entire matrix. You can now compare every combination of rate and term in one view.
In addition, this kind of tabular output is similar in concept to how analysts use data analysis and interpretation in quantitative research – structuring variables to reveal patterns clearly.
Practical Use Cases for Data Tables
Data tables are not limited to loan calculations. Here are some real-world applications:
Finance & Accounting
- Loan amortisation across different interest rates
- Revenue projections based on unit price changes
- Break-even analysis at varying cost structures
Sales & Marketing
- Pricing sensitivity analysis
- Margin calculations across discount tiers
- Campaign ROI comparisons at different spend levels
Operations
- Cost modelling across supplier prices
- Inventory cost analysis at different order quantities
- Production cost changes with labour rate fluctuations
Understanding how to frame these problems is part of broader predictive analytics vs data analytics thinking – where you model possible futures rather than just summarise the past.
Tips for Using Data Tables Effectively

Follow these best practices to get the most out of your data tables:
- Always link the formula cell to your main formula, not a static value
- Keep input values realistic – test a reasonable range, not extreme outliers
- Format the table clearly – use bold headers and number formatting for readability
- Protect the result cells – data table outputs are array formulas; do not edit them manually
- Use named ranges – this makes your input cells easier to identify in the dialogue box
- Avoid placing tables too close to other data – they can interfere with your layout
Furthermore, if you work with large datasets, it is worth learning how to structure and clean your data first. Knowing how to make a data analysis report ensures your what-if results are presented clearly to stakeholders.
Common Mistakes to Avoid
Many users run into the same issues when using data tables. Here are the most common ones:
1. Wrong input cell reference: Selecting the wrong row or column input cell gives incorrect results. Always double-check which cell drives the formula.
2. Formula not linked to the data table: If your formula cell does not reference the same input cell you specify in the dialogue, the table will not calculate correctly.
3. Editing table output cells: Excel locks data table results as array formulas. Trying to edit individual cells causes an error. If you want to change values, modify the inputs – not the outputs.
4. Confusing row and column inputs: In a two-variable table, swapping the row and column input cells produces a transposed (and incorrect) result. Always match the orientation of your input range.
5. Not recalculating after changes: By default, Excel recalculates automatically. However, if you have turned off automatic calculation, your table will not update. Press F9 to force recalculation.
How Data Tables Relate to Other Excel Analysis Features
Data tables do not work in isolation. They are most powerful when combined with other Excel techniques.
For example, you can use what-if analysis in Excel data tables alongside Excel’s built-in functions like VLOOKUP, IF statements, and financial formulas to build dynamic decision-support models.
You might also use them alongside correlation vs regression analysis when you want to test not just outcomes but also understand the directional relationship between your variables.
When to Use Goal Seek or Scenario Manager Instead
Data tables are ideal when you have a fixed formula and want to test multiple input values. However, sometimes another tool fits better.
Use Goal Seek when: You know the output you want, and you need to find the right input. For example, “What interest rate gives me an EMI of ₹10,000?”
Use Scenario Manager when: You have several named scenarios with multiple changing inputs. For example, “Best Case,” “Base Case,” and “Worst Case” – each with different sales volume, cost, and price assumptions.
Data tables are best for sensitivity analysis. Scenario Manager is better for storytelling across clearly defined planning scenarios.
Program Complex Questionnaires and Skip Logic
Expert survey scripting, advanced routing, and multi-language configurations for flawless data collections.
Conclusion
The what-if analysis in an Excel data table is one of the most underused yet powerful features in Excel. It helps you test assumptions, visualise scenarios, and make confident decisions – all within a single, well-structured view.
Whether you are a finance analyst, a student, or a business owner, mastering data tables will save you hours of manual work. Start with a one-variable table, get comfortable with the process, and then move to two-variable models as your needs grow.
Ultimately, the ability to ask “what if?” and get an immediate, structured answer is what separates good analysts from great ones. Excel gives you that power – and now you know how to use it.
Frequently asked questions
A data table is a range of cells that shows how changing one or two input values affects a formula’s output. It lets you run multiple calculations at once without rewriting your formula.
A one-variable table tests one input across many values. A two-variable table tests two inputs simultaneously – one across a row and one down a column – showing results for every possible combination.
No. Excel stores data table results as an array formula. You cannot edit individual output cells. To change the results, update your input values or the linked formula instead.
This usually happens when Excel’s calculation mode is set to manual. Go to Formulas → Calculation Options → Automatic to fix it. You can also press F9 to manually recalculate.
In a one-variable table, yes – you can add multiple formula columns to see several outputs at once. In a two-variable table, you can only display one output formula at a time.



