SHEET([value])

Returns the sheet number of the referenced sheet.

value(Optional) The name of a sheet or formula reference.

Remarks

* Added in Excel 2013.
* If "value" is not provided, then the number of the active sheet is returned.
* This function includes all worksheets (visible, hidden, very hidden, chart, dialog sheets, macro sheets).
* This function cannot be called from VBA.
* If "value" is not valid, then #REF is returned.
* For the Microsoft documentation refer to support.office.com

 A
1=SHEET() = 3
2=SHEET("Sheet1") = 1
3=SHEET("Sheet3") = 3
4=SHEET("Sheet5") = 5

Example 1 - The sheet number of the active worksheet.

© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited Top