Bird
Raised Fist0
Excelspreadsheet~10 mins

Data Tables (What-If) in Excel - Cell-by-Cell Formula Trace

Choose your learning style10 modes available
Sample Data

This table shows a simple price and quantity with a formula to calculate total cost (Price * Quantity). Below is a data table setup to test different price and quantity combinations to see their total cost.

CellValue
A1Price
B1Quantity
C1Total Cost
A210
B25
C2=A2*B2
A4Price
B4Quantity
C4Total Cost
A58
A610
A712
B54
B65
B76
C5
C6
C7
Formula Trace
Data Table uses the formula in C2 (=A2*B2) with input values from A5:A7 (Price) and B5:B7 (Quantity) to fill C5:C7 with results.
Step 1: Original formula in C2: =A2*B2
Step 2: Data Table input: Price values in A5:A7 (8, 10, 12), Quantity values in B5:B7 (4, 5, 6)
Step 3: Calculate Total Cost for Price=8, Quantity=4: 8 * 4
Step 4: Calculate Total Cost for Price=10, Quantity=5: 10 * 5
Step 5: Calculate Total Cost for Price=12, Quantity=6: 12 * 6
Cell Reference Map
    A      B      C
1 |Price |Quantity|Total Cost|
2 |  10  |   5    |=A2*B2   |

4 |Price |Quantity|Total Cost|
5 |  8   |   4    |         |
6 | 10   |   5    |         |
7 | 12   |   6    |         |
The formula in C2 references A2 and B2. The data table uses values from A5:A7 and B5:B7 to substitute into A2 and B2 for recalculations.
Result
    A      B      C
1 |Price |Quantity|Total Cost|
2 |  10  |   5    |   50    |

4 |Price |Quantity|Total Cost|
5 |  8   |   4    |   32    |
6 | 10   |   5    |   50    |
7 | 12   |   6    |   72    |
The data table fills column C (Total Cost) with results of multiplying Price and Quantity from columns A and B for each row.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the formula in cell C2 calculate?
APrice multiplied by Quantity
BPrice plus Quantity
CQuantity minus Price
DPrice divided by Quantity
Key Result
Data Tables substitute input values into a formula to calculate multiple results automatically.

Practice

(1/5)
1. What is the main purpose of a Data Table in Excel's What-If Analysis?
easy
A. To quickly see how changing input values affects the result
B. To create charts from data automatically
C. To sort data in ascending or descending order
D. To protect cells from editing

Solution

  1. Step 1: Understand What-If Analysis

    What-If Analysis helps explore different input values to see their effect on results.
  2. Step 2: Identify Data Table's role

    Data Tables let you test many input values quickly to observe changes in output.
  3. Final Answer:

    To quickly see how changing input values affects the result -> Option A
  4. Quick Check:

    Data Tables show output changes for input variations [OK]
Hint: Data Tables show results for many inputs fast [OK]
Common Mistakes:
  • Confusing Data Tables with chart creation
  • Thinking Data Tables sort data
  • Believing Data Tables protect cells
2. Which of the following is the correct way to create a one-variable Data Table in Excel?
easy
A. Apply conditional formatting to the input cells
B. Type multiple formulas manually for each input value
C. Use the Sort feature under Data tab
D. Select the output cell and input values, then use Data > What-If Analysis > Data Table

Solution

  1. Step 1: Recall Data Table creation steps

    Data Tables are created via Data > What-If Analysis > Data Table, not by typing formulas manually.
  2. Step 2: Identify correct method

    Select the output formula cell and input values, then use the Data Table option to generate results.
  3. Final Answer:

    Select the output cell and input values, then use Data > What-If Analysis > Data Table -> Option D
  4. Quick Check:

    Data Table creation uses menu, not manual formulas [OK]
Hint: Use Data > What-If Analysis > Data Table to create tables [OK]
Common Mistakes:
  • Typing formulas manually for each input
  • Using Sort instead of Data Table
  • Confusing conditional formatting with Data Tables
3. Given a one-variable Data Table where the formula in cell B2 is =A2*10 and the input values in column A are 1, 2, 3, what will be the output values in the Data Table?
medium
A. [0, 0, 0]
B. [10, 20, 30]
C. [100, 200, 300]
D. [1, 2, 3]

Solution

  1. Step 1: Understand the formula and inputs

    The formula multiplies the input value in A2 by 10.
  2. Step 2: Calculate outputs for each input

    For inputs 1, 2, 3: outputs are 1*10=10, 2*10=20, 3*10=30.
  3. Final Answer:

    [10, 20, 30] -> Option B
  4. Quick Check:

    Multiply inputs by 10 to get outputs [OK]
Hint: Multiply each input by 10 to find outputs [OK]
Common Mistakes:
  • Confusing inputs with outputs
  • Multiplying by 100 instead of 10
  • Assuming outputs are zero
4. You created a two-variable Data Table but all output cells show #REF! error. What is the most likely cause?
medium
A. The formula cell reference is missing or incorrect in the Data Table setup
B. You forgot to enter input values
C. The worksheet is protected
D. You used a one-variable Data Table instead of two-variable

Solution

  1. Step 1: Understand #REF! error in Data Tables

    #REF! usually means a broken or invalid cell reference in the formula.
  2. Step 2: Check Data Table setup

    If the formula cell reference is missing or incorrect, the Data Table cannot calculate results, causing #REF! errors.
  3. Final Answer:

    The formula cell reference is missing or incorrect in the Data Table setup -> Option A
  4. Quick Check:

    Broken formula references cause #REF! errors [OK]
Hint: Check formula cell reference in Data Table setup [OK]
Common Mistakes:
  • Assuming missing inputs cause #REF!
  • Blaming worksheet protection without checking references
  • Confusing one-variable and two-variable tables
5. You want to analyze how changing both price and quantity affects total revenue using a two-variable Data Table. Price values are in row 2 (cells B2:E2) and quantity values in column A (cells A3:A6). The total revenue formula is =B1*C1 where B1 is price and C1 is quantity. How should you set up the Data Table to get correct results?
hard
A. Place the formula in cell A1, select range A1:E5, then use Data Table with Row input cell = C1 and Column input cell = B1
B. Place the formula in cell B1, select range B1:E6, then use Data Table with Row input cell = C1 and Column input cell = B1
C. Place the formula in cell A2, select range A2:E6, then use Data Table with Row input cell = B1 and Column input cell = C1
D. Place the formula in cell A2, select range A2:E6, then use Data Table with Row input cell = C1 and Column input cell = B1

Solution

  1. Step 1: Position formula correctly

    Formula must be at the intersection of input values: cell A2 (top-left corner of data table range).
  2. Step 2: Select correct range and input cells

    Select A2:E6 to cover all price (row) and quantity (column) values. Set Row input cell = B1 (price) and Column input cell = C1 (quantity) matching formula references.
  3. Final Answer:

    Place the formula in cell A2, select range A2:E6, then use Data Table with Row input cell = B1 and Column input cell = C1 -> Option C
  4. Quick Check:

    Formula at top-left, correct input cells for row and column [OK]
Hint: Formula top-left; row input = price; column input = quantity [OK]
Common Mistakes:
  • Placing formula outside data table range
  • Swapping row and column input cells
  • Selecting wrong range for Data Table
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard