Google Sheets
SHEETS function in Google Sheets
Returns the total number of sheets in the referenced spreadsheet. .
=SHEETS(reference)SHEETS syntax and parameters
One argument, zero required.
- referencerangeOptional
[ OPTIONAL ] - Reference identifies the number of sheets. If reference isn’t included, 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 Excel
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 Google Sheets gets this done.
- CELLReturns the requested information about the specified cell.InfoExcel
- ERROR.TYPEReturns a number corresponding to the error value in a different cell.InfoExcel
- ISBLANKChecks whether the referenced cell is empty.InfoExcel
- ISDATEReturns whether a value is a date.InfoNo Excel equivalent
- ISEMAILChecks whether a value is a valid email address.InfoNo Excel equivalent
- ISERRChecks whether a value is an error other than `#N/A`.InfoExcel