Topics in this sectionWhat-If Analysis3 topics
- Manual What-If Analysis
- Data Tables
- Scenario Manager
What a Data Table Does
A data table is a spreadsheet tool that shows what happens to a result when you change one or two input values. Instead of calculating each scenario separately, you set up the table once and Excel fills in all the results for you automatically. This helps you see many possible outcomes side by side, which is useful when you want to compare different scenarios quickly.
When you work with formulas in a spreadsheet, you often want to know: "What if this number were different?" For example, if you calculate a loan payment based on an interest rate, you might want to see what the payment would be at 5%, 10%, 15%, or 20%. Doing these calculations one by one takes time. A data table does all of them at once and displays them in a neat layout. This makes it easier to make decisions when you can see all the possibilities together.
Data tables are especially helpful when:
- You have one formula and want to test many values for one input (single-variable table)
- You have one formula and want to test many combinations of two inputs (two-variable table)
A single-variable data table shows how changing one input value affects your result. For example, imagine you are planning to borrow money from a microfinance group in Juba to start a small shop. You want to know what your monthly payment would be at different interest rates.
Suppose your loan amount is in cell C10, the number of months is in cell C11, and the interest rate is in cell C7. Your formula to calculate the monthly payment is in another cell. To create a single-variable data table:
- In a column, list the different interest rates you want to test (for example, 5%, 10%, 15%, 20%).
- In the row next to the first interest rate, enter a reference to the formula that calculates the payment. Do this for as many result cells as you need.
- Select the entire range that includes your interest rates and the formula references.
- Go to the Data tab, click What-If Analysis, then select Data Table.
- In the Column Input Cell box, enter the cell reference that contains the interest rate (C7). Leave the Row Input Cell box empty.
- Click OK. Excel fills in the table with the calculated payments for each interest rate.
The table now shows your monthly payment at every interest rate you listed, so you can compare them easily and choose what works best for your shop.
A two-variable data table shows how changing two different inputs affects one result. Using the same loan example, you might want to see how the monthly payment changes when you vary both the interest rate and the loan amount at the same time.
To create a two-variable data table:
- In the top row of your table, list different loan amounts.
- In the left column of your table, list different interest rates.
- At the intersection of the row and column (the top-left cell of your table area), enter a reference to the formula that calculates the monthly payment.
- Select the entire range including the loan amounts, interest rates, and the formula reference.
- Go to Data → What-If Analysis → Data Table.
- In the Row Input Cell box, enter the cell reference for the loan amount.
- In the Column Input Cell box, enter the cell reference for the interest rate.
- Click OK. Excel fills in the results showing every combination of loan amount and interest rate.
This gives you a complete grid of results. For instance, you can see what your payment would be for a loan of 50,000 SSP at 10% interest, or 100,000 SSP at 15% interest, all in one view.
When you create a data table, Excel does not put regular formulas in each cell. Instead, it inserts a special array formula that looks like this: {=TABLE(,C7)}. This formula tells Excel to calculate the results for all the scenarios you listed. You will see these curly braces in the formula bar, indicating that the entire table is controlled by one formula.
Data tables are useful, but they have some limits:
- You can vary only one or two input cells at a time. You cannot test three or more different inputs in a single table.
- Setting up a data table requires careful arrangement of your rows and columns, which can feel confusing at first.
- A two-variable table shows results for only one formula cell. If you need to see results for multiple formulas, you must create separate tables for each one.
When you need to test more than two inputs or want a simpler way to switch between different sets of values, you can use another tool called the Scenario Manager, which lets you save and name different combinations of input values.
In South Sudan, a data table could help a small business owner at the Konyo Konyo market in Juba compare different prices for sacks of sorghum or dura based on varying quantities and transport costs. For example, if a trader wants to know the total cost of buying 10, 20, or 30 sacks from different suppliers at different prices per sack, a two-variable data table would show all the possible totals at once, making it easier to decide where to buy and how much to purchase. This kind of quick comparison is valuable for merchants working with limited capital in busy markets across the country.
Question
What is the primary purpose of a data table in a spreadsheet?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet