
The Excel SHEETS function returns the total number of sheets in a given reference. When no arguments are supplied SHEETS returns the total number of sheets in the workbook.
Get number of sheets in a reference
Sheet count
=SHEETS ([reference])
Use the SHEETS function to get the total number of sheets in a given reference. When no arguments are supplied, SHEETS returns the total number of sheets in the workbook. The SHEETS function includes hidden sheets.
For example, in a workbook that contains 3 sheets, the following formula will return 3:
=SHEETS()
Sheets can be used to report the sheet count in 3D references as well. For example, the following formula will return 2:
=SHEETS(Sheet1:Sheet2!A1)
Notes

The Excel SHEETS function returns the total number of sheets in a given reference. When no arguments are supplied SHEETS returns the total number of sheets in the workbook.
Get number of sheets in a reference
Sheet count
=SHEETS ([reference])
Use the SHEETS function to get the total number of sheets in a given reference. When no arguments are supplied, SHEETS returns the total number of sheets in the workbook. The SHEETS function includes hidden sheets.
For example, in a workbook that contains 3 sheets, the following formula will return 3:
=SHEETS()
Sheets can be used to report the sheet count in 3D references as well. For example, the following formula will return 2:
=SHEETS(Sheet1:Sheet2!A1)
Notes