SHEETS Function

SHEETS Function

SHEETS Function

Return the number of sheets in a workbook or reference.

ExcelClash Team
PUBLISHED

Summary

SHEETS returns the number of sheets in a workbook or reference. If you leave the argument out, it returns the total sheet count for the current workbook.

This makes it useful for workbook audits, template checks, and formulas that need to know how many sheet layers are involved.

Purpose

Count sheets

Returns the total number of sheets in a workbook or in a reference span.

Return Value

Whole number

The result is a sheet count.

Syntax

=SHEETS([reference])

The argument is optional. Without it, Excel counts the sheets in the current workbook.

Arguments

  • reference - [optional] A reference whose sheet span you want to count.

SHEETS vs SHEET

Function Main job Use it when
SHEETS Counts sheets You need the total number of sheets involved.
SHEET Returns one sheet index You need the position of a specific sheet.
COUNTA Counts non-empty cells You want a content count inside a sheet, not a sheet count.
ISNUMBER Checks numeric values You want to validate the result type, not count sheets.

Using SHEETS

This function works well when a workbook has a required structure. If a template should contain a certain number of tabs, SHEETS() gives you a quick way to test whether that structure is still intact.

It is also useful with 3D references. A formula like SHEETS(Sheet1:Sheet5!A1) counts the number of sheets in that reference span, which helps when you are checking multi-sheet calculations.

Example 1 - Count all sheets in the workbook

This is the default use.

=SHEETS()
Check Answer
Challenge #1
Target: Sheet1!F1
Workbook Sheet Count

Return the number of sheets in the current workbook. Formula: =SHEETS().

Example 2 - Count a 3D reference span

This returns the number of sheets between the start and end tabs in the reference.

=SHEETS(Sheet1:Sheet5!A1)
Check Answer
Challenge #2
Target: Sheet1!F2
3D Range Count

Count the sheets in a 3D reference. Formula: =SHEETS(Sheet1:Sheet5!A1).

Example 3 - Compare the actual count to an expected one

This is a simple workbook health check.

=IF(SHEETS()<10,"INCOMPLETE","READY")
Check Answer
Challenge #3
Target: Sheet1!F3
Workbook Size Check

Flag the workbook if it has fewer than 10 sheets. Formula: =IF(SHEETS()<10,"INCOMPLETE","READY").

Example 4 - Check a single-sheet reference

A normal reference like A1 covers one sheet, so the result is 1.

=SHEETS(A1)
Check Answer
Challenge #4
Target: Sheet1!F4
Single Reference Count

Count the sheets covered by A1. Formula: =SHEETS(A1).

Conclusion Recap

  • Main job: SHEETS counts sheets.
  • No argument: It returns the total workbook sheet count.
  • With a reference: It counts the sheets covered by that reference.
  • Good use: Workbook audits and 3D reference checks.
Tactical Arena
Select Scenario:
Share SHEETS Function!

Tell your friends about this post

Discussion

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster.

© 2026 ExcelClash, Inc. All rights reserved.