How to use SHEET function in Excel?

The SHEET function in Excel is used to return the sheet number of a reference. It can be applied to a cell in a worksheet or specified by its sheet name. Here’s how you can use the SHEET function:

Syntax:

SHEET([value])
  • value (optional): This can be a reference to a cell, a named range, or a sheet name you want to get the sheet number for. If omitted, the function returns the sheet number of the sheet where the function is used.

Steps to use the SHEET function:

     =SHEET()
     =SHEET(A1)
  • Basic Usage:
    • To get the sheet number of the current sheet where you’re writing the function, simply use:
  • Specific Cell or Range:
    • If you want to get the sheet number for a specific cell reference:

This will return the sheet number where cell A1 is located.

     =SHEET(SheetName!A1)
  • Specific Sheet:
    • To get the sheet number of a specific sheet by name:

Replace `SheetName` with the actual name of the sheet you are interested in. Ensure that the sheet name is followed by an exclamation mark (`!`) and a cell reference like `A1`.

     =SHEET(YourNamedRange)
  • Using with Named Ranges:
    • If you have a named range, you can also use the SHEET function to find the sheet number where this named range is located:

Replace `YourNamedRange` with the name of your named range.

Notes:

  • The SHEET function is available in Excel 2013 and later versions.
  • The function is particularly useful when working with formulas that may need to dynamically reference sheets based on their position within a workbook.
  • If the value is invalid (e.g., a non-existent sheet or incorrect named range), the function returns a `#REF!` error.

By leveraging the SHEET function, you can manage and reference sheet numbers dynamically, which is especially handy for larger workbooks where sheet positions may change.

Unlock Your Potential

Excel

Basic - Advanced

Access

Access Basic - Advanced

Power BI

Power BI Basic - Advanced

Help us grow the project