Input Cell Reference Is Not Valid in Excel – How to Fix?

When you build a data table in Excel, you may run into an error that stops it before it starts. The message is: Input cell reference is not valid.

It shows up because Excel is strict about what a row or column input cell can be. Most often it sits on a different worksheet than the table.

Three other references trigger the same message. In this article, I’ll show you all four causes and the fix for each.

Reason #1: The Input Cell Is on Another Sheet

This is the most common reason for the error. A data table’s row and column input cells must be on the same worksheet as the table.

Below I have a loan model on Loan Model and a sensitivity table on Rate Table. The Column input cell points to 'Loan Model'!B3.

Data Table dialog on the Rate Table sheet with the Column input cell pointing to 'Loan Model'!$B$3

Excel rejects that reference when I click OK. The table can use a result formula from another sheet, but its input cell cannot live there.

Fix 1: Put the Data Table on the Same Sheet as the Input

The simplest fix is to keep the data table beside the model. This lets the table use the model’s real input cell directly.

On Same Sheet, B2 is $25,000, B3 is 6.5%, and B4 is 5 years. B5 calculates a monthly payment of $489.15.

Here are the steps to create the working one-variable table:

  1. Select D2:E10. D3:D10 contains interest rates from 4.5% through 8.0%, and E2 refers to the monthly payment in B5.
Loan model in A1:B5 with the data table range D2:E10 selected
  1. Go to the Data tab, click What-If Analysis, and choose Data Table.
Data Table option in the What-If Analysis drop-down on the Data tab
  1. Leave Row input cell empty. Click the Column input cell box, then select B3 on Same Sheet.
Data Table dialog with Row input cell empty and Column input cell set to $B$3
  1. Click OK.

E3:E10 now returns $466.08, $471.78, $477.53, $483.32, $489.15, $495.03, $500.95, and $506.91.

One-variable data table showing a monthly payment for each interest rate from 4.5% to 8.0%

Fix 2: Move the Input Cell to the Data Table’s Sheet

If the table must stay on a separate worksheet, move the real input there. Then make the model read that same-sheet input.

Below I have Rate Table with Interest Rate in A2 and 6.5% in B2. The sensitivity table remains in D1:E10.

Rate Table sheet with Interest Rate 6.5% in B2 and the sensitivity table in D1:E10

Here are the steps to connect the model correctly:

  1. Enter 6.5% in Rate Table!B2. On Loan Model, replace the interest rate in B3 with this formula:
='Rate Table'!B2
Loan Model interest rate in B3 linked to the Rate Table sheet with ='Rate Table'!B2
  1. On Rate Table, select D2:E10. Open Data > What-If Analysis > Data Table, leave Row input cell empty, and select B2 for Column input cell.
Data Table dialog on Rate Table with Column input cell set to $B$2
  1. Click OK.

The table now returns the same eight monthly payments as the working table on Same Sheet.

Data table on the Rate Table sheet returning eight different monthly payments

Note: A popular workaround puts ='Loan Model'!B3 on the table sheet and uses that linking cell as the input. It removes the error but returns $489.15 in every row because the model does not read the cell Excel changes.

Reason #2: The Row and Column Input Cells Are the Same Cell

Here’s another reference Excel rejects. In a two-variable table, the row and column input boxes cannot point to the same cell.

Below I have Two-Variable, where rates run down D3:D10 and terms of 3, 4, 5, and 6 years run across E2:H2.

Two-variable table with interest rates down D3:D10 and loan terms of 3 to 6 years across E2:H2

The value across the top replaces the row input. The value down the left replaces the column input, so each one needs its own model cell.

Here are the steps to correct the two-variable table:

  1. Select D2:H10, then go to Data > What-If Analysis > Data Table. Set Row input cell to B4 and Column input cell to B3.
Data Table dialog with Row input cell $B$4 and Column input cell $B$3
  1. Click OK.

The table returns $743.67 for 4.5% over 3 years, $489.15 for 6.5% over 5 years, and $438.33 for 8.0% over 6 years.

Two-variable data table showing monthly payments for each rate and term combination

Reason #3: The Input Is Not a Single Cell

The Row input cell and Column input cell boxes accept one cell only. A multi-cell range, merged cell, or whole column triggers the error.

Below I have the one-variable loan table with B3:B4 entered as the Column input cell instead of one cell.

Data Table dialog with the multi-cell range $B$3:$B$4 entered as the Column input cell

B3:B4 contains two inputs, so Excel cannot know which model value it should substitute. The same problem occurs with B:B or a merged cell.

Here are the steps to fix the reference:

  1. Clear the invalid reference. If the intended input is merged, unmerge it first. Then select the single interest-rate cell B3.
Data Table dialog with the single cell $B$3 as the Column input cell
  1. Click OK.

Excel accepts B3 and fills E3:E10 with a different monthly payment for each interest rate.

Data table filled with a different monthly payment for each interest rate

Reason #4: The Input Cell Is Inside the Data Table

Excel also rejects an input cell that sits inside the data table’s selected range. The substitution cell must remain separate from the result array.

Below I have D2:E10 selected for the table, with E3 incorrectly entered as the Column input cell.

Data Table dialog with E3, a cell inside the table range, entered as the Column input cell

E3 is part of the range Excel is about to fill. It cannot serve as both the changing model input and a calculated table result.

Here are the steps to correct it:

  1. Clear E3 from the Column input cell box. Select B3, which contains the interest rate and sits outside D2:E10.
Data Table dialog with Column input cell $B$3, which sits outside the table range
  1. Click OK.

The valid outside input lets Excel calculate the full result range without the reference error.

Data table calculated across the full result range E3:E10

Why Your Data Table Shows the Same Value in Every Row

Sometimes Excel accepts the reference but produces the wrong result. Below, every interest rate returns the original $489.15 payment.

Data table returning the same $489.15 payment for every interest rate

These problems do not cause the Input cell reference is not valid message:

  • An unrelated or blank input cell is valid, but changing it does not affect the model.
  • A linking cell such as ='Loan Model'!B3 fails when the model never reads that linking cell.
  • Swapping the row and column input cells can calculate incorrect numbers instead of showing an error.
  • Automatic Except for Data Tables leaves existing table results stale until you recalculate them.

Here is how to refresh a stale table:

  1. Press F9. To recalculate data tables with normal workbook changes, go to Formulas > Calculation Options and choose Automatic.
Calculation Options drop-down on the Formulas tab with Automatic highlighted

All four causes at a glance:

CauseHow to spot itFix
Input cell is on another sheetThe table and its row or column input cell have different sheet namesPut the table on the input sheet, or move the real input to the table sheet
Row and column inputs are identicalBoth boxes in a two-variable Data Table dialog point to the same cellUse one cell for each variable
Input is not one single cellThe box contains a range, merged cell, or whole-column referenceSelect one unmerged cell
Input is inside the tableThe referenced cell sits within the selected data table rangeMove the input outside the table

Frequently Asked Questions

Here are some commonly asked questions about the data table and people getting the Input Cell Reference Is Not Valid in Excel prompt:

Can the Input Cell Be on a Different Sheet From the Data Table?

No. A row or column input cell must be on the data table’s worksheet. The output formula in the table can still refer to another sheet.

Why Can’t I Delete Part of an Excel Data Table?

Excel stores the results as one array, shown as {=TABLE(,B3)} in this example. Select the entire results array before deleting it.

What Is the Difference Between a Row Input Cell and a Column Input Cell?

The row input cell matches test values arranged across the top. The column input cell matches values arranged down the left side.

Can I Type the TABLE Function Myself?

No. Excel creates the TABLE array formula through Data > What-If Analysis > Data Table. You cannot enter TABLE() as a normal worksheet function.

Conclusion

I’d start by checking that the input cell and the data table sit on the same worksheet. That is the most likely cause of this error.

If they already do, make sure each box holds one distinct cell outside the table range. I hope this got your data table calculating again.

Other Excel articles you may also like:

Leave a Comment