Function · Information
Excel SHEET function
The Excel SHEET function returns a sheet's position in the workbook. In a file whose sheets are Jan, Feb, and Mar, SHEET("Feb") is 2. Moving Feb to the front makes it 1.
Syntax =SHEET([value])
=SHEET("Feb")Arguments
| Name | Required | What to pass |
|---|---|---|
| value | Optional | A sheet name, or a reference. If omitted, SHEET returns the number of the sheet that contains the formula. The first sheet is 1. |
Examples
The middle sheet in a three-sheet workbook
=SHEET("Feb")Result 2
| A | B | |
|---|---|---|
| 1 | Name | Feb |
| 2 | Number | 2 |
SHEET returns the position of a sheet, starting at 1 for the leftmost tab. In a workbook whose tabs are Jan, Feb, and Mar, SHEET("Feb") is 2. Drag Feb to the front and the same formula returns 1. The number is not a name. It changes when the tabs move, and hidden sheets still occupy a number.
With no argument, SHEET returns the number of the sheet that holds the formula. A one-sheet file is 1. SHEETS counts sheets, and SHEET returns one sheet’s number. Excel 2010 does not have SHEET. A wrong name is #N/A, not 0.