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.

Excel 2013 and later, including Microsoft 365 and Excel for the web. Also in Google Sheets.

Syntax =SHEETS([reference])

SHEETS
=SHEETS()

Arguments

NameRequiredWhat to pass
referenceOptionalOmit 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

=SHEETS()B1
Sheets
AB
1Sheet count3
A picture of the sheet, not a live calculator. The pictured workbook has the three tabs Jan, Feb, and Mar. Hidden sheets count.

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.