Find Sheet Name In Excel
There s no built in function in excel that can get the sheet name.
Find sheet name in excel. For the formula we will be using the cell mid and find functions. In the insert workbook information dialog box select worksheet name in the information section and in the insert at section select the range option and then select a blank cell for locating the sheet name and finally click the ok button. Instead of using a1 you can refer to any cell on the first worksheet to get the name of this worksheet. This is useful when you re using one master worksheet to control the links to several subordinate workbooks and it provides an introduction to the indirect function which is one of the most useful tools in excel s library of functions.
You might want to widen the columns so the names don t get cut off. Current tab you can use a formula based on the cell function cell retrieves the workbook name and sheet and the mid and find functions are used to extract just the sheet name. The list is inserted starting in the selected cell. Now all worksheet names containing the keywords are found and listed at the bottom of find and replace dialog box.
Let s begin by looking at the cell function. You can see the current sheet name is referenced into the selected cell. To insert the entire list into the worksheet click paste list. In the example shown the formula in e5 is.
To get the name of the current worksheet i e. 1 define a named range called sheetnames with an old macro command and 2 use an index formula to retrieve sheet names using the named range. The cell function below returns the complete path workbook name and current worksheet name. See above dialog box.
5 click a found worksheet name in the find and replace dialog box to select corresponding cell next click the selected cell in the index sheet it will jump to the corresponding worksheet at once. By finding the sheet name using an excel formula it ensures that if the sheet name is changed the formula returns the new sheet name. On the paste name dialog box all the named cell ranges display in the paste name list. To list worksheets in an excel workbook you can use a 2 step approach.