Information - SHEETS Function



Description

The SHEETS function returns the number of sheets in a reference.

Syntax

SHEETS (reference) 

Arguments

Argument Description Required/ Optional
Reference

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.

Optional

Notes

  • SHEETS includes all worksheets (visible, hidden, or very hidden) in addition to all other sheet types (macro, chart, or dialog sheets).

  • If reference is not a valid value, SHEETS returns the #REF! error value.

Applicability

Excel 2013, Excel 2016

Example

SHEETS Function
advanced_excel_information_functions.htm
Advertisements