Excel SHEETS Function: Syntax, Examples & Tips

The SHEETS function counts the total number of sheets in a workbook or a specified reference, helping users manage their data effectively.
Excel
=SHEETS([reference])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single SHEETS formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is a SHEETS Formula in Excel?
  3. A Practical Example
  4. SHEETS Formula
  5. Result of the Formula
  6. Why Use SHEETS?
  7. Key Takeaways:
  8. Example use case

Parameters

reference:
An optional argument that specifies the worksheet or range of worksheets for which you want to count the number of sheets. If omitted, it defaults to the current workbook.

What is a SHEETS Formula in Excel?

The SHEETS function in Excel is a useful tool that allows you to count the number of sheets in a workbook. This function provides a quick way to determine how many worksheets are present, which can be particularly helpful when managing large workbooks with multiple sheets.

In simpler terms, the SHEETS function helps you keep track of the number of sheets in your Excel file, making it easier to navigate and organize your data.

A Practical Example

Imagine you are working on a financial report that consists of several sheets, each representing a different month of the year. You want to know how many sheets are included in your workbook.

Monthly Financial Reports Table:

Sheet Name
January
February
March
April
May
June
July
August
September
October
November
December

You want to find out the total number of sheets in your workbook.

SHEETS Formula

To count the total number of sheets in your workbook, you would use the SHEETS formula as follows:

Excel
=SHEETS()

Breakdown of the Formula:

  • SHEETS(): This function does not require any arguments and will return the total count of sheets in the current workbook.

Result of the Formula

When you apply the formula, it counts all the sheets in your workbook. The output would be:

Total Sheets
12

Here, the total number of sheets is calculated as 12, representing each month of the year.

Why Use SHEETS?

The SHEETS function is particularly useful when you need to quickly assess the structure of your workbook without manually counting each sheet. It allows you to efficiently manage and navigate through your data.

Key Takeaways:

  • SHEETS: Counts the total number of sheets in a workbook.
  • Efficient Workbook Management: Helps you quickly assess the number of sheets without manual counting.
  • Common Use Cases: Ideal for large workbooks, project management, and any scenario where you need to keep track of multiple sheets.

Understanding how to use the SHEETS function can significantly enhance your workbook management capabilities in Excel, enabling you to maintain a well-organized and efficient data structure.

Happy counting!

Example use case

You have a workbook with multiple sheets, each representing a different month of sales data for your team. You want to quickly determine how many sheets are included in the workbook to assess the total number of months for which you have sales data. By using the SHEETS function, you can easily count the total number of sheets, allowing for efficient planning and analysis of sales trends over time without needing to manually count each sheet.

Beyond the SHEETS function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.