Skip to content

See many results at once with a data table

What-if analysis8 minPremium

Builds on Your first formula.

A conference organizer in Montreal has a budget sheet that works out the event's profit from the ticket price. Before the board picks a price, it wants to see the profit at four prices side by side, and later at every mix of price and attendance.

How it works

A data table runs one formula for each value in a list and shows every result at once. For one input, with the values down a column:

  1. Type the values down a column, such as prices in D3:D6.
  2. In the cell one row above the first value and one column to its right, E2, point at the result, such as =B5.
  3. Select the block, D2:E6, and choose Data > What-If Analysis > Data Table.
  4. In Column input cell, enter the cell the values stand in for, B1, and click OK.

Values typed across a row go in through Row input cell, with the formula one column to the left of the first value and one row below it. For two inputs, put the formula in the top-left corner, one list of values down the column under it and the other across the row beside it, and fill in both boxes.

Excel fills the results with one TABLE formula, such as {=TABLE(,B1)}, so you can't change a single result. Big data tables can slow a workbook down. On Windows, Formulas > Calculation Options > Partial leaves them out of automatic recalculation (on a Mac it's Automatic except for data tables), and F9 updates them.

Example

The organizer's budget has the price in B1 and the profit in B5. With E2 pointing at B5, Data Table with Column input cell B1 fills E3:E6.

  1. Step 1: E2 points at the profit in B5, one row above the first price and one column to its right.
  2. Step 2: Excel puts each price from D3:D6 into B1, the column input cell, one at a time.
  3. Step 3: It writes the profit beside each price, $1,000 at $36.
The data table runs the profit formula once for each price in column D, with that price in B1, and writes each result beside its price. B1 itself keeps its $40.00. In E2, =B5 returns $3,000.

Common mistakes

  • Row input cell for values that run down a column. Excel then puts the values into the wrong cell. Values down a column go through Column input cell.
  • An input cell on another sheet. Excel refuses it, so keep the inputs on the sheet with the table.
  • Typing over a result. Excel says it can't change part of a data table. Change the inputs instead.

In short

  • A data table runs one formula for each value in a list and shows every result.
  • Values down a column go through Column input cell, values across a row through Row input cell, and a two-variable table uses both.
  • The results are one TABLE formula, so you change the inputs, not the results.

Practice

Premium

4 exercises: 3 dialogs and 1 quiz question.

Practice is part of Premium

Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.