ExcelExcel 2013+
SHEETS function in Excel
Returns the number of sheets in a reference
=SHEETS(reference)SHEETS syntax and parameters
One argument, zero required.
- referencerangeOptional
Reference is a reference for which you want to know the number of sheets it contains. If Reference is omitted, SHEETS returns the number of sheets in the workbook that contains the function.
SHEETS examples
Formulas you'll actually reuse.
How many sheets the workbook has:
=SHEETS()Result
6A “tab 2 of 6” label from the sheet position and count:
="Region " & SHEET() & " of " & SHEETS()Result
"Region 2 of 6"
SHEETS in Google Sheets
Same name — your formula ports as-is.
Try SHEETS in the playground
Edit the example — nothing to install.
Preloaded with the SHEETS formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- CELLReturns information about the formatting, location, or contents of a cellThis function is not available in Excel for the web.InfoGoogle Sheets
- ERROR.TYPEReturns a number corresponding to an error typeInfoGoogle Sheets
- INFOReturns information about the current operating environmentThis function is not available in Excel for the web.InfoNo Google Sheets equivalent
- ISBLANKReturns TRUE if the value is blankInfoGoogle Sheets
- ISERRReturns TRUE if the value is any error value except #N/AInfoGoogle Sheets
- ISERRORReturns TRUE if the value is any error valueInfoGoogle Sheets