1. Home
  2. Functions
  3. Information
  4. SHEETS

SHEETS function

Returns the number of sheets in a reference, or in the workbook when left out.

Syntax

=SHEETS([reference])

Arguments

ArgumentRequiredDescription
referenceOptionalA reference (the whole workbook when left out)

How to use SHEETS

SHEETS takes no required arguments and 1 optional argument. Type =SHEETS( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=SHEETS()Result 2
=SHEETS(A1)Result 1

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.