Skip to content

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.

Official Help: SHEET, SHEETS.

  1. Open a blank spreadsheet. Rename the first tab Summary. Add a second tab Sales and a third tab Tax. On Sales, in B2 type 100. Stay on Summary for 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.

Summary!A2 selected. Formula bar shows =SHEET(). A2 is 1, A3 is 2 from =SHEET("Sales"), A4 is 2 from =SHEET(Sales!B2). Tab bar shows Summary, Sales, Tax.

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.

A7 selected. Formula bar shows =SHEET(C2). A7 is 1. C2 displays Sales. A8 is 2 from =SHEET(TO_TEXT(C2)). No error triangle on A7.

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.

A10 selected. Formula bar shows =SHEET("Missing"). A10 is #REF!. Tooltip: Unresolved sheet name 'Missing'.

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.

E4 selected. Formula bar shows =SHEETS(Sales!A1). E4 is #N/A. Tooltip: Wrong number of arguments to SHEETS. Expected 0 arguments, but got 1 arguments. E2 is 3 from =SHEETS(). E6 is also #N/A. Tab bar shows Summary, Sales, Tax.
  • SHEET is a position. SHEETS is 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, and SHEETS() is the number of tabs in this file. The first tab is 1.
  • A cell reference is a valid SHEET argument, but it means “the tab that owns this cell.” SHEET(C2) is not SHEET of the text stored in C2. That is why A7 is 1 while C2 displays Sales.
  • 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 with INDIRECT; 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.