SHEETS Function
Return the number of worksheets. Without an argument, SHEETS returns the number of sheets in the workbook. A reference to a single sheet as value_or_reference returns 1.
Syntax
SHEETS(value_or_reference)
Category: Information. Minimum arguments: 0. Maximum arguments: 1.
Available for supported offline calculation.
Examples
=SHEETS()
The formula returns 1 in a workbook with one sheet.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.