Skip to main content

Excel SHEETS Function

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

sheets function 1


=SHEETS ([reference])


  • Reference (optional): The reference of the number of sheets it contains. When omitted, SHEETS returns the total number of all sheets in the workbook.

Return value

The SHEETS function returns a numeric value.

Function notes

  1. The SHEETS function includes hidden sheets in the calculation.
  2. The #REF! error value occurs if the supplied reference argument is not a valid reference.
  3. The SHEETS function can report sheet count in 3D references.
  4. The SHEETS function counts the number of sheets in a given reference. The SHEET function returns the numeric index of a sheet.


As the below screenshot shows, to calculate the number of sheets in different references, please do as follows:

1. To know the total number of sheets of the workbook, please copy the formula below into cell D5, then press the Enter key to get the result.


sheets function 2

2.To know the rest of the results, please copy the formulas below into cell D6, D7, and D8, then press the Enter key to get the results.

=SHEETS (Sheet5!A1 )

=SHEETS (Sheet5:Sheet4!A1)

=SHEETS (Sheet5:Sheet3!A1 )

sheets function 3


  1. In the first formula above, the reference argument is omitted. The formula returns the total number of sheets in the workbook.
  2. In the second formula above, the reference argument is cell A1 in Sheet5. It can also be any other cell, like B10 in Sheet5. And the returned result is 1 because only one sheet is in the reference.
  3. In the third formula above, the reference argument is a 3D reference. The formula returns the number of sheets from Sheet5 to Sheet4, which is 2.

Relative Functions:

  • Excel EVEN Function
    The EVEN function rounds numbers away from zero to the nearest even integer.

  • Excel EXP Function
    The EXP function returns the result of the constant e raised to the nth power.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations