Function · Information
Excel SHEETS function
The Excel SHEETS function counts sheets. SHEETS() in a workbook with Jan, Feb, and Mar returns 3. A 3D reference across those three sheets is also 3.
Syntax =SHEETS([reference])
=SHEETS()Arguments
| Name | Required | What to pass |
|---|---|---|
| reference | Optional | Omit it to count every sheet in the workbook. Pass a 3D reference such as Jan:Mar!A1 to count the sheets in that span, including the ends. |
Examples
A workbook with three sheet tabs
=SHEETS()Result 3
| A | B | |
|---|---|---|
| 1 | Sheet count | 3 |
SHEETS counts sheets. With no argument it counts the workbook. Jan, Feb, and Mar are three, so the result is 3. A brand-new workbook with one sheet returns 1. Pass a 3D reference and the count is the sheets from the first name through the last, including both and anything between them. SHEETS(Jan:Mar!A1) is 3 when those tabs are contiguous.
Hidden sheets count. Chart sheets count. The number does not tell you the names. SHEET returns one sheet’s number, which is where one name sits. SHEETS counts sheets. Excel 2010 does not have SHEETS.