Data Table in Excel: What-If Analysis and Excel Tables Explained

Data table in excel explained: build What-If Analysis tables for sensitivity work, then convert ranges into Excel Tables for filters and structured references.

Microsoft ExcelBy Katherine LeeMay 21, 202616 min read
Data Table in Excel: What-If Analysis and Excel Tables Explained

Ask ten excel users what a data table in excel actually is and you will probably get two different answers. One half will mention the What-If Analysis feature buried inside the Data tab, the one that swaps inputs in and out of a formula to show how the result moves.

The other half will point at any range they have pressed Ctrl + T on, the kind with banded blue rows and tiny filter arrows in the header. Both groups are right. Excel has two completely different features that share the same name, and that is why search results for this topic are so confusing.

This guide pulls them apart. The first half handles the What-If Analysis Data Table, the sensitivity tool that financial modellers, pricing analysts, and engineering students lean on every week. The second half walks through the Excel Table object, the formatted range with auto-expanding rows and structured references like =Table1[Sales]. You will see when to use each, where they break down, and why mixing them up costs real time in real spreadsheets.

Most of the screenshots, shortcuts, and menu paths described here match the desktop versions of microsoft excel shipping in Microsoft 365 and Excel 2021. Older builds keep the same logic, sometimes under slightly older menu names. excel online supports Excel Tables fully but trims the What-If Analysis menu, so do the heavy sensitivity work on desktop.

Meaning #1: The What-If Analysis Data Table

This is the older meaning, and it is the one Excel itself uses inside the menu. Open the Data tab, click What-If Analysis, and you will see three options stacked together: Scenario Manager, Goal Seek, and Data Table. The Data Table option is the workhorse for sensitivity analysis. You give Excel a single formula and either one list of inputs (one-variable) or two lists of inputs (two-variable). Excel re-runs the formula for every combination and pastes the results into a grid. You see at a glance how the answer reacts as inputs move.

Pricing teams use it to test margin at different cost points. Loan officers use it to see how a monthly payment changes as rate and term move. Engineers use it to track yield across temperature ranges. The pattern is always the same: one formula, one or two inputs, one rectangular grid of outputs.

One-variable data table: the row or column setup

The one-variable version answers a question like "how does my monthly payment change as the interest rate goes from 3 percent to 8 percent?" You list the rates down a column, you put the payment formula one row above and one column to the right of the rate list, and then you tell Excel which cell in your formula represents the rate. Excel substitutes each rate, recalculates the payment, and fills in the column.

The exact steps look like this. Type your input values into a single column, say B5 through B15. Above and to the right of those values, in cell C4, type the formula you want to test, for example =PMT(B2/12, B3, B1), where B2 is the annual rate. Highlight the rectangle from B4 to C15, open Data > What-If Analysis > Data Table, and put B2 into the Column input cell box. Click OK. Excel writes a single hidden array formula and pastes the results back. The same trick works horizontally; you just use the Row input cell box instead.

Microsoft Excel - Microsoft Excel certification study resource

What-if data table quick reference

2Maximum input variables for one What-If Analysis Data Table — beyond two you reach for Scenario Manager or Solver
1Number of formulas a single What-If Data Table can stress test at a time inside its grid
F9Keyboard shortcut that forces a manual recalculation when Automatic Except for Data Tables is enabled
100KApproximate row count where large data tables visibly slow workbook recalc and you should consider Power Query

Two-variable data table: the corner-cell trick

The two-variable version takes a single formula and stresses it against two inputs at once. The layout has one input list running down the leftmost column and another input list running across the top row. The single formula sits in the top-left corner cell, the cell where the row and column meet. That corner placement trips up almost every new user. You are not putting the formula in the result grid. You are putting it in the corner that anchors the whole table.

Say you want to see how an NPV reacts to discount rate (across the top) and annual cash flow (down the side). Put the cash flows in B5:B14 and the discount rates in C4:G4. Put your NPV formula in B4, the corner. Highlight B4:G14, open Data > What-If Analysis > Data Table, set the row input cell to wherever your formula reads the discount rate, set the column input cell to wherever it reads the cash flow, and confirm. You get a 60-cell sensitivity grid in one motion. Old-school spreadsheet pros call this a sensitivity matrix.

Hard limit: two variables, then Solver or Scenario Manager

The What-If Data Table maxes out at two inputs. That is a real hard limit, not a soft one. If you need to flex three or more variables, you stop using Data Table and reach for Scenario Manager for a small number of named cases, or Solver for optimisation under constraints. Power Query plus a parameter table is the modern third option when your inputs come from another file or API.

For finance models the typical loadout is a one-variable table on the executive summary tab, a two-variable table on the assumptions tab, and Scenario Manager for the actual board-pack scenarios. Each tool has a job; the data table is just the fastest way to render a clean grid of outputs from a single formula.

When data tables slow your workbook to a crawl

Data tables recalc every time anything in the workbook changes, not only when their own inputs move. A workbook with three or four big tables open at once can crawl. The fix is the calculation toggle. Go to Formulas > Calculation Options and pick Automatic Except for Data Tables. Excel will keep cells fresh and leave the heavy tables alone until you press F9 manually. That single toggle has saved more spreadsheets than almost any other tip in this guide.

Corner-cell rule, written once

In a two-variable data table the formula sits in the top-left corner cell of the highlighted block, not inside the output grid. The row inputs run across, the column inputs run down, and Excel reads the formula from that corner. Put the formula anywhere else and the table returns garbage or a single repeated value.

Meaning #2: The Excel Table object

Now the second meaning. Press Ctrl + T on any data range and Excel converts it into a Table, with a capital T. The visual change is instant: header row gets bold formatting, banded rows alternate light and white, autofilter arrows appear in every column header, and a contextual Table Design ribbon tab shows up whenever you click inside. Looks cosmetic. It is not. Underneath, Excel has wrapped your range in an object with a name, a defined shape, and structured references.

From that moment forward, the range behaves like a small database. Add a row at the bottom and the Table stretches to include it; any formula referencing the Table updates automatically. Add a column on the right and Table extends the same way. Delete a row in the middle and named formulas survive without breaking. Compare that to a plain range, where every formula has to be widened by hand any time the data grows.

Three ways to make a Table

There are three entry points and they all produce the same object. Click any cell inside your data and press Ctrl + T, then confirm whether your data has headers. Or use the ribbon: Insert > Table, same dialog. Or pick Home > Format as Table and choose a style; Excel will create the Table and apply the style in one step. The first two routes default to a plain blue banded look, the third route lets you skip to a custom palette right away.

Three things an Excel Table gives you that a range does not

expandAuto-expansion when data grows

Type into the row directly below a Table and the Table absorbs that row automatically without any prompt. Any formula that references the Table updates immediately without being widened. PivotTables, charts, Slicers, and Power Query connections built on the Table refresh against the new size on the very next refresh. The same applies to columns added to the right edge — Excel pulls them in. This single behaviour is the reason monthly dashboards keep working long after the original analyst has left the company.

codeStructured references that survive edits

Instead of =SUM(B2:B500) you write =SUM(Sales[Revenue]). The formula reads like English, survives row inserts and deletes, and travels with the Table when you rename or move it. Rename the Revenue column to Net Revenue and every formula that references it updates at the same time. Same for the Table name itself. Insert ten rows in the middle of the Table and your downstream SUM still adds the correct values, because the reference targets the column, not a fixed cell rectangle.

filterBuilt-in filter, sort, and total row

Filter dropdowns appear in every header automatically. Sort by colour, by value, by custom list, or by icon set. Filters can be hidden via Table Design then Filter Button if the file goes to non-Excel users. Toggle the Total Row on and SUBTOTAL aggregates appear per column — they ignore filtered-out rows by design, which is exactly what you want for a live dashboard. Banded rows alternate light and white for instant readability on long Tables.

Excellence Playa Mujeres - Microsoft Excel certification study resource

Structured references, the real productivity win

Structured references are the feature that makes Tables worth the small learning curve. Once a range is a Table, every column gets a name based on its header. A column called Revenue can be referenced as Sales[Revenue] from anywhere in the workbook. Sum it with =SUM(Sales[Revenue]). Average a specific row with =Sales[@Revenue], where the @ means "this row". Reference the header alone with =Sales[[#Headers],[Revenue]].

The wins compound. Insert a row in the middle of the Table and your =SUM(Sales[Revenue]) formula in another sheet stays correct without being touched. Rename the column from Revenue to Net Revenue and every formula that references it updates at the same time. The kind of broken-formula errors that plague big excel spreadsheet files mostly disappear once the source data is in a properly named Table.

Naming a Table

Excel defaults to names like Table1, Table2, Table3. Those names are fine for throwaway work and useless for any workbook with more than two Tables. Click inside the Table, open the Table Design tab, and edit the Table Name box in the far left. Use short, meaningful names: Sales, Costs, Headcount. Table names follow defined-name rules in Excel: no spaces, no starting with a digit, no clashes with cell addresses like R1 or C1.

Formulas propagate down a column

Type a formula into one cell of a Table column and Excel offers to fill the rest of the column. Accept and the formula is copied to every existing row. Add new rows later and the same formula is applied automatically. There is a tiny lightning-bolt smart tag that lets you undo the propagation if you only want the formula in one cell. This auto-fill behaviour is the second-best argument for converting raw ranges into Tables; the first being structured references.

Common Table operations and where to click

Press Tab in the last cell of the last row. Excel creates a new row inside the Table, applies banded formatting, and copies any calculated-column formulas down. You never need to manually extend the Table boundary. New rows pulled in by paste operations work the same way, as long as you paste below the last row rather than over the bottom edge of an existing one. The Table boundary handle in the bottom-right corner can also be dragged downward if you prefer the mouse.

Tables feed everything else: PivotTable, Power Query, Power Pivot

Almost every modern data feature in Excel reads from a Table by preference, not from a plain range. PivotTables built on a Table refresh against the new shape every time the Table grows. Power Query connections to a Table re-import all rows on every refresh. Power Pivot data models load Tables directly into the model. Even Slicers, the big clickable filter buttons, only work when the source is a Table or a PivotTable. If you are building anything with Slicers, the Table conversion is non-negotiable.

Charts pick up the same benefit. A chart built on Sales[Revenue] grows automatically when new rows arrive. A chart built on $B$2:$B$500 needs its source range adjusted by hand every quarter. For dashboards that refresh monthly, the difference between Table-based and range-based source data is the difference between set it once and fix it forever.

Calculated columns and how they differ from spilled arrays

A calculated column is a Table column whose values come from a formula that references other columns in the same row. =[@Quantity] * [@Price] in a column called Line Total calculates per row, fills the entire Table column, and stays in sync as rows are added. This is closer to a database computed column than to a regular Excel formula.

Newer versions of Excel also support dynamic array formulas that spill out into adjacent cells. Spilled arrays and calculated columns can coexist, but inside a Table you almost always want a calculated column. The reason: spilled arrays do not automatically extend with the Table, and they can leave ragged edges in your data. Stick with one calculated column per output, written with structured references.

Where Tables stop being a good fit

Tables are a great default for any range up to about 100,000 rows. Above that, the auto-recalc on every keystroke starts to drag the whole workbook. A 500,000-row Table with a few calculated columns on a normal laptop will hesitate every time anything changes. The pragmatic answer is to push that data into Power Query, transform it there, and load only the aggregated summary into a Table on the worksheet. The Table on the sheet stays small and fast; the heavy lifting happens inside the query.

Another rough edge: Tables do not play well with merged cells. Merging cells inside a Table is disabled by Excel for safety, and trying to paste data containing merged cells into a Table will unmerge them automatically. Most of the time this is the right call, but it surprises people the first time it happens. If your incoming data has merged headers, unmerge them before pasting into a Table.

What happens in older .xls files

Tables are a feature of the excel 2007-and-later file formats: .xlsx and .xlsm. If you save a workbook with Tables as an older .xls file, Excel converts every Table back into a plain range. The formatting survives, structured references break, and any formulas that depended on them snap to absolute cell addresses. The takeaway: if your workbook ever travels to a colleague stuck on Excel 2003, do the Table-to-range conversion deliberately before sending it, so you can see exactly which formulas got rewritten.

Excel Spreadsheet - Microsoft Excel certification study resource

Build-a-Table checklist (use on every new workbook)

  • Make sure the source range has a single header row with no merged cells, no completely blank columns, and no formula cells mixed in with the headers themselves
  • Click anywhere inside the data, press Ctrl+T to open the create-Table dialog, confirm the My table has headers checkbox, and accept the default banded blue style
  • Rename the Table on the Table Design tab using a short single-word name — Sales, Costs, Inventory, Headcount — with no spaces and no leading digits
  • Write at least one calculated column using structured references like =[@Quantity]*[@Price] and let Excel propagate the formula down the entire column for you
  • Toggle the Total Row on and pick filter-aware aggregates from the dropdown — SUBTOTAL is the default and it respects any column filters you apply later
  • Build any PivotTables, Slicers, Charts, or Power Query feeds against the Table name itself, not against the original A1-style cell range, so the source grows automatically
  • If your row count climbs past about 100,000, push the heavy transforms into Power Query and load only the aggregated summary back into a Table on the worksheet for fast user-facing recalc

Putting both meanings together in one workbook

The biggest insight, once you have used both for a while, is that the two features are complementary rather than overlapping. The excel formulas behind a What-If Analysis Data Table almost always read from inputs that sit inside an Excel Table somewhere on another sheet. A loan-amortisation model, for example, will keep its rates and term schedules in a Table called Assumptions, then run a two-variable Data Table on the executive summary tab to render the sensitivity grid. The Table holds the source of truth; the Data Table renders the answer.

The same pattern shows up in pricing models. Cost inputs and SKU lists live in Tables; the gross-margin sensitivity grid lives in a Data Table at the top of the summary sheet. When a new SKU is added, the Table auto-expands and the lookups inside the Data Table pick up the new row. The grid recalcs automatically because Excel still treats the Data Table as a one-shot array formula and refreshes it on the next calculation pass.

Quick comparison the way analysts actually think about it

Plain range vs Excel Table: the range is static, the Table grows. Range references like B2:B500 have to be widened by hand every time data is added; Table references like Sales[Revenue] handle it automatically. Range filters disappear when the sheet is closed; Table filters are persistent. Ranges feed PivotTables once; Tables feed PivotTables every refresh.

Data Table (What-If) vs Scenario Manager: the Data Table is dense and visual, the Scenario Manager is sparse and named. Use Data Table when you have one formula and want to see a grid of outcomes. Use Scenario Manager when you have a few named cases like Base Case, Upside, Downside, and you want to switch between them or print them. They coexist comfortably in the same workbook.

Should you convert your range into an Excel Table?

Pros
  • +Auto-expansion means PivotTables, charts, and formulas always include new rows without anyone widening cell ranges by hand each quarter
  • +Structured references like Sales[Revenue] read like English in formulas and survive insert, delete, and rename operations without breaking
  • +Banded alternating rows, header filter arrows, and an aggregate-aware Total Row are all toggled on through one click on the Table Design tab
  • +Required for Slicers and strongly recommended for Power Query and Power Pivot data-model connections that refresh against changing data
  • +Calculated columns propagate the formula automatically as new rows are appended, so there is no manual fill-down step on monthly imports
Cons
  • Cannot contain merged cells anywhere inside the body — Excel silently unmerges them on paste or refuses to create the Table
  • Performance starts to flag past about 100,000 rows when several calculated columns are present and full workbook recalc is on
  • Reverts to a plain range when saved as an older .xls file, snapping structured references back to fragile A1-style cell addresses
  • Structured references can confuse colleagues who only know plain A1 addresses, so a short readme on the workbook helps adoption

Common errors and how to fix them

Three errors come up over and over. First, the #REF! error in a What-If Data Table. Almost always caused by clicking the wrong cell in the input dialog or by putting the formula somewhere other than the corner of the highlighted block. Delete the array, re-highlight, re-run the dialog, and double-check the input cells.

Second, the circular reference warning when adding a Total Row. Triggered when a calculated column references the same column it lives in. Rewrite the formula to reference a sibling column instead, then re-add the Total Row.

Third, the Tables-disappearing-in-protected-mode complaint. Files marked read-only or opened in Protected View show Tables but disable the Table Design tab. Click Enable Editing at the top of the window and the tab returns. Nothing has been lost.

Final mental model

Hold onto two mental images. Image one: a small grid of outputs in the top corner of a worksheet, generated by feeding one formula different inputs. That is the What-If Analysis Data Table. Image two: a banded, filter-arrowed block of data with a name in the corner and structured references in every formula that touches it. That is the Excel Table object. Both are useful, both are called "data table", and now you can keep them straight whenever a colleague drops the term into a meeting.

For deeper reading on the surrounding ecosystem, the excel spreadsheet guide covers workbook structure and the excel formulas primer walks through every formula category referenced above. Both are good companion pieces once you have the data-table vocabulary down.

Excel Questions and Answers

About the Author

Katherine LeeMBA, CPA, PHR, PMP

Business Consultant & Professional Certification Advisor

Wharton School, University of Pennsylvania

Katherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.