Sub topic 9
Reading the `TABLE` Array Formula and Its Editing Limits
Assume you know basic Excel navigation, cell references, absolute references, and how to build a formula-driven financial model. You should also know how to create a one-variable or two-variable data table.
A data table is a What-If Analysis tool. It substitutes values into one or two model input cells, recalculates the model, and records the output. Excel stores that relationship in a special TABLE array formula.
What the `TABLE` formula means
After you create a data table, select one of its result cells and look at the formula bar. You may see a formula like this:
{=TABLE(,B2)}The braces indicate an array formula in older Excel interfaces. They are usually displayed by Excel rather than typed by you.
The two arguments have different roles:
=TABLE(row_input_cell, column_input_cell)- The first argument identifies the input cell replaced by values across the table's top row.
- The second argument identifies the input cell replaced by values down the table's first column.
- A blank argument means that the table does not use that direction.
For a one-variable table with interest rates down the side, the formula might be:
{=TABLE(,B2)}The blank first argument means there is no row input. B2 is the column input cell, so Excel replaces the interest rate in B2 with each value in the left column.
For a two-variable table, the formula might be:
{=TABLE(B3,B2)}Here, the values across the top row replace B3, perhaps the loan term. The values down the first column replace B2, perhaps the interest rate.
Why the formula is special
TABLE is not a normal worksheet function that you type into a cell. Excel creates it when you use Data > What-If Analysis > Data Table.
The formula represents the instructions for the whole data table range. It tells Excel which model input cells to substitute, but it does not show the substituted value as an ordinary cell reference.
For example, this formula does not mean “calculate the payment using the current value in B2.” It means “recalculate the model while Excel cycles through the table's input values and place each result in this table.”
Editing limits
Excel treats the data table results as one array-like range. You generally cannot change one result cell independently. If you try to type over a single result, Excel may display an error such as:
> You cannot change part of an array.
You also should not manually replace the TABLE formula with a regular formula. Doing so removes that cell from the data table behavior and can make the grid inconsistent.
To change the table:
- Select the complete data table range, including its formula corner and headers when appropriate.
- Delete the existing table.
- Change the headers, output formula, or input-cell arrangement.
- Create the data table again.
You can usually change number formats, borders, colors, and conditional formatting without affecting the table logic.
Reading a table when results look wrong
Use the formula bar to confirm the mapping:
TABLE(,B2)means one variable runs down the first column and replacesB2.TABLE(B3,)means one variable runs across the top row and replacesB3.TABLE(B3,B2)means the top row replacesB3and the first column replacesB2.
Then compare the table's current-input intersection with the model's normal output. If the table uses a 6.5% rate and a 30-year term, the corresponding result should equal the output produced by the model with B2 = 6.5% and B3 = 30.
Exercise
A two-variable table displays {=TABLE(B2,B3)}. The years are across the top, and interest rates are down the side. Which input-cell mapping is probably wrong?
Show answer
The arguments are reversed. The top-row years should point to the term input, and the left-column rates should point to the interest-rate input. Recreate the table with the correct row and column input cells.