
Return the number of sheets in a workbook or reference.
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.
SHEETS is mainly about workbook structure rather than cell content. It helps count how many sheets are involved, which can be useful in audits, dynamic references, and checks where the size of the workbook or a sheet range matters to the formula logic.
Returns the total number of sheets in a workbook or in a reference span.
The result is a sheet count.
=SHEETS([reference])
The argument is optional. Without it, Excel counts the sheets in the current workbook.
| 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. |
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.
This example uses SHEETS() with no argument, so Excel returns the total number of worksheets in the workbook. It answers the question "how many tabs are there overall?"
That can be useful in workbook audits, control sheets, or checks that depend on the file having the expected number of tabs.
=SHEETS()
In cell D2, return the number of sheets in the current workbook.
This example compares the workbook sheet count to the number you expect. It is a simple way to confirm that the workbook still has the required number of tabs.
That can be useful in control sheets, setup checks, or any workbook that should always contain a fixed set of sheets.
=SHEETS()=5
In cell D3, confirm the workbook still has five sheets.
Here, the sheet count is being turned into a quick status message. Instead of only returning the number, the formula checks whether the workbook has reached an expected minimum size.
This is a practical pattern when a workbook should contain a full set of tabs before it is considered ready, complete, or safe to use.
=IF(SHEETS()<10,"INCOMPLETE","READY")
In cell D4, flag the workbook if it has fewer than 10 sheets.
This example keeps the reference small so the behavior is easy to see. A normal cell reference belongs to one sheet only, so the result is 1.
It helps show that SHEETS is really counting the sheet span of the reference you give it, not the number of cells inside that reference.
=SHEETS(A1)
In cell D5, count the sheets covered by a single reference.
SHEETS is useful when you care about how many tabs are involved, not where one tab sits. In this lesson, that meant checking total workbook size, counting tabs inside a 3D reference, and making sure a template still has the structure it should have.
The easiest way to remember it is count versus position. SHEETS() gives a total, while SHEET() gives one sheet number.
SHEETS counts sheets.Tell your friends about this post