SHEET vs SHEETS in Google Sheets — tab position, tab count, and a name in a cell
Updated
SHEET and SHEETS were added to Google Sheets in February 2026. SHEET returns a tab’s position in the tab bar, starting at 1. SHEETS returns how many tabs the file has. They recalculate when you add, delete, move, or rename a tab. They are not a typo of each other, and they are not a way to write an Excel 3D span.
This page is the position-versus-count pair, plus the silent miss when the tab name sits in a cell. A typo in a normal Sales!B2 reference is Unresolved sheet name. Excel’s Jan:Mar!B2 span is 3D references. Keep the Google Sheets UI in English.
Recreate it on a blank sheet
Section titled “Recreate it on a blank sheet”- Open a blank spreadsheet. Rename the first tab
Summary. Add a second tabSalesand a third tabTax. OnSales, in B2 type100. Stay onSummaryfor every formula below unless a step says otherwise.
Position of this tab, and of a named tab. In A1 type sheet_fn. In A2 enter =SHEET(). A2 is 1, because Summary is the first tab. In A3 enter =SHEET("Sales"). A3 is 2. In A4 enter =SHEET(Sales!B2). A4 is also 2: the argument is a reference on Sales, not the number 100. Leave A2:A4 as the control.
The name in a cell is the silent miss. In C1 type tab_name. In C2 type Sales as plain text. In A6 type from_cell. In A7 enter =SHEET(C2). A7 is 1, not 2. C2 is a cell on Summary. SHEET takes that reference and returns the position of this tab. It does not read the letters Sales. Leave A7 as 1.
In A8 enter =SHEET(TO_TEXT(C2)). A8 is 2. That is the control for “pass the text, not the cell.” If C2 later holds a range address as text, such as Sales!B2, use =SHEET(INDIRECT(C2)) instead; see INDIRECT #REF! if that string is not a real address.
A missing tab name is an error. In A10 enter =SHEET("Missing"). A10 is #REF!. The live English tooltip is Unresolved sheet name 'Missing'. Official Help only says that an invalid name or reference “returns an error.” Leave A10 broken.
The count. In E1 type sheets_fn. In E2 enter =SHEETS(). E2 is 3 while the file has Summary, Sales, and Tax. Add a fourth tab, then return to Summary: E2 becomes 4. Delete that extra tab: E2 is 3 again. Leave E2 as the count.
SHEETS does not take an argument. In E4 enter =SHEETS(Sales!A1). In E6 enter =SHEETS(Summary:Tax!A1). The second formula is an Excel-style 3D span. Both cells are #N/A. The live English tooltip is Wrong number of arguments to SHEETS. Expected 0 arguments, but got 1 arguments. That matches Google’s February 2026 Workspace announcement. Official Help syntax still lists an optional reference; the live grid does not accept one. Leave E4 and E6 broken.
What is actually wrong
Section titled “What is actually wrong”SHEETis a position.SHEETSis a count.SHEET("Sales")does not return the value in Sales!B2.SHEETS()does not return the position of the current tab.- Official Help: if you omit the argument,
SHEET()is the tab that contains the formula, andSHEETS()is the number of tabs in this file. The first tab is 1. - A cell reference is a valid
SHEETargument, but it means “the tab that owns this cell.”SHEET(C2)is notSHEETof the text stored in C2. That is why A7 is1while C2 displaysSales. TO_TEXT(C2)turns that value into a name argument.INDIRECT(C2)is for when C2 holds an address, not only a tab name. Table-reference text cannot be revived withINDIRECT; see table references.SHEET("Missing")is an invalid name. The live cell is#REF!and the tooltip is the same unresolved-name sentence used on a typo like=Missing!B2.- These functions are not Excel 3D references.
=SUM(Summary:Tax!B2)is still unsupported. See 3D references. CELL("sheet", Sales!B2)returns the name of the tab, as text.SHEET(Sales!B2)returns the number. See CELL info types.
This is not Unresolved sheet name. A formula such as =Missing!B2 still points at a cell and stays #REF! with that unresolved-name tooltip. SHEET("Missing") is the new function evaluating a name argument.
This is not a typo of SHEET as SHEETS inside a count you already wrote by hand (=3). The function exists now; use it when the tab bar can change.
Leave A7 as 1 and A10 as the error so both cases stay visible.
Pass a name or a real reference. Keep A3 =SHEET("Sales") and A4 =SHEET(Sales!B2) when you know the tab. When the name is in a cell, use A8: =SHEET(TO_TEXT(C2)).
Count with SHEETS(). Keep E2 as =SHEETS(). Leave E4 and E6 broken. SHEETS does not accept a reference, including an Excel-style 3D span. Do not copy SHEETS(Sheet1:Sheet3!A1) from Excel.
A checklist from a list of names. If E10:E12 lists tab names, =IFERROR(SHEET(TO_TEXT(E10)),"") returns the position or a blank for a typo. A leftover typo is easier to see as a blank than as a number on the wrong tab.
Do not wrap A7 in IFERROR. A7 is not an error. It is the wrong position. See IFERROR hides cause.
If SHEET of a cell that displays a tab name returns the current tab’s number, the argument is a reference, not the text. If SHEET of a quoted name errors, read the hover: the tab is missing or misspelled, which is not the same as Unresolved sheet name on a normal A1 formula.