Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use the SHEETS Function in Excel

Learn how to use SHEETS Function in Excel, including its purpose, syntax, examples, and common errors, with clear step-by-step guidance.

Table of Contents

This guide explains how to use SHEETS Function in Excel, including its syntax, required arguments, practical examples, and common errors.

How to Use the SHEETS Function in Excel screenshot

Description: The function returns the number of pages in a reference. Support functions from Excel 2013 onwards.

Syntax: SHEETS (reference)

Inside:

- reference: A reference to find the page number, is the required parameter.

Attention:

- SHEETS function includes all worksheets, along with all types of macro pages, charts.

- If the reference value is not valid -> the function returns the #REF! Error value

- SHEET function should not be used in the object model because that model already has similar features.

- In case of omitting reference parameter, the function returns the total number of pages in the current working window.

For example:

Calculate the number of pages in a reference described in the table below:

How to Use the SHEETS Function in Excel screenshot 2

- In the cell to calculate enter the formula : = SHEETS (C6)

How to Use the SHEETS Function in Excel screenshot 3

- Press Enter -> return value is:

How to Use the SHEETS Function in Excel screenshot 4

- Similarly copying the formula for the remaining values results:

How to Use the SHEETS Function in Excel screenshot 5

- In case of omitting reference parameter -> function returns the total number of sheets of the current working window.

How to Use the SHEETS Function in Excel screenshot 6

Above are instructions and some specific examples when using SHEETS function in Excel.

Good luck!

FAQ

What does the SHEETS function do in Excel?

The SHEETS function performs the calculation described in this guide. Use the correct arguments and compatible data types for reliable results.

How do I enter the SHEETS function correctly?

Start with an equals sign, enter SHEETS, add the required arguments inside parentheses, and confirm that cell references and separators are correct.

Why does the SHEETS function return an error?

Common causes include missing arguments, invalid data types, incorrect cell references, unsupported values, or regional separator settings.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.