Table references in formulas: Table1[Column] in Google Sheets
How Expenses[Amount] references work in Google Sheets tables, what follows a column rename, and why old names and INDIRECT break.
On this page
=SUM(Expenses_2[Cost])Before header renamed to Cost
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Date | Paid by | Category | Cost | Line | Result | |
| 2 | 11/2/2026 | Megan | Office supplies | 42.5 | Total spent | #ERROR! | |
| 3 | 11/3/2026 | Josh | Mileage | 18.75 | Office supplies | #ERROR! | |
| 4 | 11/4/2026 | Kayla | Software | 120 | Largest expense | #REF! | |
| 5 | 11/5/2026 | Ryan | Meals | 64.3 | Total (typed before the rename) | 485.54 | |
| 6 | 11/6/2026 | Lauren | Office supplies | 9.99 | |||
| 7 | 11/7/2026 | Tyler | Travel | 230 |
What changed
[Amount]retyped as[Cost]- INDIRECT removed from G4
After current names typed in
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Date | Paid by | Category | Cost | Line | Result | |
| 2 | 11/2/2026 | Megan | Office supplies | 42.5 | Total spent | 485.54 | |
| 3 | 11/3/2026 | Josh | Mileage | 18.75 | Office supplies | 52.49 | |
| 4 | 11/4/2026 | Kayla | Software | 120 | Largest expense | 230 | |
| 5 | 11/5/2026 | Ryan | Meals | 64.3 | |||
| 6 | 11/6/2026 | Lauren | Office supplies | 9.99 | |||
| 7 | 11/7/2026 | Tyler | Travel | 230 |
Table references in formulas, the Table1[Column] kind in Google Sheets, are much nicer to read than A1 ranges, once they actually work. On the Fixed tab of the take-home copy, =SUM(Expenses_2[Cost]) totals the six-row expense table at 485.54, =SUMIF(Expenses_2[Category], "Office supplies", Expenses_2[Cost]) gives 52.49 for office supplies, and =MAX(Expenses_2[Cost]) gives 230. The syntax is the table name, then the column header in square brackets, TableName[Header], but only once the range is a real table.
Renaming is the annoying part. I changed the header Amount to Cost and the formula already in the sheet quietly rewrote itself to Expenses[Cost] and kept returning 485.54, which is fine. Anything I typed afterward with the old name got #ERROR! and the note Formula parse error. And INDIRECT wouldn't take a table reference at all, not even with the current name. I didn't see that one coming.
Does A1:D7 need to be a table before Expenses[Amount] works?
A plain block of cells with headers in row 1 doesn't count. It has to be something Sheets treats as a table. My copy started as four typed columns, Date, Paid by, Category and Amount, with six expenses under them.
- Select
A1:D7. - Open Format, then Convert to table.
- Sheets adds a green header band and a name tab above it.
- Click the arrow next to that name and rename the table. We typed Expenses.
After converting, the Date column got a calendar icon by itself. Google's page on using tables in Google Sheets has the naming rules, and the one that matters for formulas is that a space in the table name turns into _ when you reference it. The More tests tab has a table named like that.
The table name goes before the brackets, the header text inside them
Both halves have to match exactly. Table name as it shows on the green tab, header text as it shows in row 1, spaces and all. =COUNTA(Nov_expenses[Paid by]) on More tests returned 7 with the space just left inside the brackets (I half expected to need quotes there).
A column reference is the data rows only, so SUM(Expenses[Amount]) skips the word in the header cell. Well, you can still get the header if you want it. Google's page on table references lists hash items for that: #ALL, #HEADERS, #DATA and #TOTALS. On More tests, =JOIN(", ", Nov_expenses[#HEADERS]) returned "Date, Paid by, Category, Cost".
This is honestly the bit that makes tables worth the setup. On More tests I typed a seventh expense into the empty row right under the table, a Meals expense of 27.15 paid by Brandon, and the table stretched to take it in. =SUM(Nov_expenses[Cost]) went from 485.54 to 512.69 and I never touched the formula.
G5 followed the rename to Cost while G2 and G3 broke
So Sheets fixes the formulas that already exist and can't do anything about ones you type later with the old name. The Broken tab has the exact sequence. =SUM(Expenses[Amount]) went into G5 while the header still said Amount, then I clicked D1 and typed Cost over it. G5 now reads =SUM(Expenses[Cost]) in the formula bar and still shows 485.54.
G2 and G3 were typed after the rename, with the old name. =SUM(Expenses[Amount]) and =SUMIF(Expenses[Category], "Office supplies", Expenses[Amount]) both show #ERROR!, and selecting G2 gives Formula parse error. No hint about which name it doesn't like, so you're left squinting at the brackets.
![Google Sheets, Broken tab, G2 selected. The formula bar shows =SUM(Expenses[Amount]). The table header row reads Date, Paid by, Category, Cost. G2 and G3 show #ERROR!, G4 shows #REF!, G5 shows 485.54, and the note next to G2 reads Error, Formula parse error.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqhpkgSCoMq-PL5tY12butDxVWS_ZxH99AUXGlYAXE1Jp-HitqThnCSf_NgyJKqJj_2jyTorXKHsXI_TI3bqdgom6B8u44aKqIFzaVcdO1G6cWfW-5Jj46TF_ldb2KmVUJbiTJ_0G5i-BSRmspEZVN0L3Vn988TzNdTLS8Vx3Y1RUrux6BuzYa-cSs7U7Z/s1600/broken-g2.png)
Same deal if you keep formulas in a notes file or another spreadsheet. Paste one back and it still has the old name, because only formulas living in the sheet get rewritten. Retype it with [Cost] and check the spelling against the table's header row, since the brackets want the header text exactly.
Renaming the table does the same thing. On More tests I renamed it to Nov expenses with a space and every working formula on the tab switched to Nov_expenses. Then I typed =SUM(Nov expenses[Cost]) by hand in G7, space included, and got #ERROR! with the same parse error note.
![More tests tab, G7 selected. The formula bar shows =SUM(Nov expenses[Cost]). The table is named Nov expenses and ends with a row for Brandon, Meals, 27.15. G2 shows 512.69, G5 shows 7, and the note next to G7 reads Error, Formula parse error.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKdAYxvzyJuLs6eg6sxXwvKVtd3Bf2dmrSCyxV8-n2Ur-wSZ2vqUiQ2eiaLfgBgNWZvfRONX1Gusz9Uucw3sqXK3-PaaN4CVYdedS47r0r8leH4NQdQGNSzYzwuRFwKYnjv14sPRiDH1yw7uMA3qbVSPKgdWiZoq5yzNLtDpb7UuECe_W-cGGCKkXj-wCa/s1600/more-g7.png)
Why does INDIRECT("Expenses[Cost]") return #REF!?
INDIRECT just won't take a table reference written as text, even with the current header. G4 on the Broken tab is =MAX(INDIRECT("Expenses[Cost]")) and it shows #REF!, with a note that's actually specific for once: Function INDIRECT parameter 1 value is 'Expenses[Cost]'. It isn't a valid cell/range reference. My guess is INDIRECT only understands normal cell and range addresses and the bracket syntax isn't one of them, but that's a guess.
![Broken tab, G4 selected. The formula bar shows =MAX(INDIRECT("Expenses[Cost]")). G4 shows #REF! and the note reads: Function INDIRECT parameter 1 value is 'Expenses[Cost]'. It is not a valid cell/range reference.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4yK8wwlWLcf1Y4U0XfCJ_wJCtaurqhCovzKKGX6ZjriPqkAQ47rCfnoHhfDSVL-35Rcvuuk7QzQR70VqMJRXeKXiOd_6z2kbW3FH0gtSDGpZXRrGGqlQ-Ic1K7rrNLLvEF_BULdIyXdnKkCosKNgWfjQ8t0ExypVU10JwxrZUXu2PS_u0Q6F4NqLoRKTZ/s1600/broken-g4.png)
The fix is to not use INDIRECT. The Fixed tab uses the reference directly, =MAX(Expenses_2[Cost]), and gets 230, the Travel expense on 11/7/2026.
Charts, pivot tables and conditional formatting do not accept table references when you select their range, according to Google's table references page, so those still take a normal range such as D2:D7.
A duplicated tab gets its own table name, such as Expenses_2
Duplicating the Broken tab to make the Fixed tab gave the copy's table the name Expenses_2, and the next duplicate got Expenses_3. The working formula in G5 on each copy got switched to that copy's own table. The broken ones in G2 and G3 came over word for word, still asking for Expenses[Amount].
The Try it yourself tab is that second duplicate, so the green tab above its table says Expenses_3 and anything new there has to use that name. Replace G2 with =SUM(Expenses_3[Cost]), G3 with =SUMIF(Expenses_3[Category], "Office supplies", Expenses_3[Cost]), and G4 with =MAX(Expenses_3[Cost]). G2:G4 should then read 485.54, 52.49 and 230, same as the Fixed tab.
| Input | Expenses_2 table, six rows, Cost in D2:D7 |
|---|---|
| Formula | SUM, SUMIF and MAX over Expenses_2[Cost] in G2:G4 |
| Expected | 485.54, 52.49, 230 |
| Sheets returned | 485.54, 52.49, 230 Matches expected |
| Checked | 2026-11-11, free personal account |
Take-home copy. Four tabs: Broken (as you see it), Fixed, Try it yourself, More tests. It opens as a copy in your own Drive.