
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.
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 is the default use.
=SHEETS()
Return the number of sheets in the current workbook. Formula: =SHEETS().
This returns the number of sheets between the start and end tabs in the reference.
=SHEETS(Sheet1:Sheet5!A1)
Count the sheets in a 3D reference. Formula: =SHEETS(Sheet1:Sheet5!A1).
This is a simple workbook health check.
=IF(SHEETS()<10,"INCOMPLETE","READY")
Flag the workbook if it has fewer than 10 sheets. Formula: =IF(SHEETS()<10,"INCOMPLETE","READY").
A normal reference like A1 covers one sheet, so the result is 1.
=SHEETS(A1)
Count the sheets covered by A1. Formula: =SHEETS(A1).
SHEETS counts sheets.Tell your friends about this post