Information Excel 2013 ◉ 28 views

=SHEET()

The SHEET function returns the sheet number of the specified sheet or other reference.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=SHEET(value)
Hover argument names in the table for details.
Output typeNumber
Popularity20 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =SHEET() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download SHEET.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
value Any type Optional argument. Use this to specify the name of a sheet or a reference for which you want to obtain the sheet number. Otherwise, the function will return the number of the sheet containing the SHEET function.

▣ Examples

Finds the number of the sheet called QSalesByRegion (having a scope that makes it available to the entire workbook). =SHEET(QSalesByRegion)
Result: 2
Finds the sheet number containing the table named Table1... (who's scope makes it available to the entire workbook). =SHEET(Table1)
Result: 2
Returns the #NAME? error value because the sought name Hi_Temps is limited to the worksheet that contains it. =SHEET(Hi_Temps)
Result: #NAME?
Seeks and returns the sheet number (3) of the worksheet named Stuff. =SHEET("Stuff")
Result: 3

§ Remarks

  • SHEET locating/identification capability includes all worksheets (visible, hidden, or very hidden) in addition to all other sheet types (macro, chart, or dialog sheets).
  • If the value argument is not a valid reference, SHEET returns the #REF! error. For example, =SHEET(Sheet1!#REF) will return the #REF! error value.
  • If the value argument is not a valid sheet name, SHEET returns the #NA error value. For example, =SHEET(“badSheetName”) will return the #NA error value.
  • SHEET is not available in the Object Model (OM) because the Object Model already includes similar functionality.

✦ Tips

  • SHEET locating/identification capability includes all worksheets (visible, hidden, or very hidden) in addition to all other sheet types (macro, chart, or dialog sheets).
  • If the value argument is not a valid sheet name, SHEET returns the #NA error value. For example, =SHEET(“badSheetName”) will return the #NA error value.
  • SHEET is not available in the Object Model (OM) because the Object Model already includes similar functionality.

⚠ Common Errors

#REF! If the value argument is not a valid reference, SHEET returns the #REF! error. For example, =SHEET(Sheet1!#REF) will return the #REF! error value.
Fix: مرجع واردشده را بررسی کنید که معتبر باشد و به سلول یا محدوده حذف‌شده اشاره نکند؛ برای مثال از Sheet1!#REF استفاده نکنید.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.