I used an IF function and an ISERROR function to search if the string contains a space or not and two MID functions to extract the name of the sheet from both scenarios. If you use a name for a sheet with a space in it (example: Sheet 1) it would show up as (='Sheet 1'A1). In the below example, it is referencing cell B1 and cell B1 just contains =Sheet2!A1 as a reference to the sheet I want to name. I can't imagine a scenario where you will want to reference another sheet and you wont already have a cell referencing that sheet for information on it, but you can always just make a blank/hidden (however you want to do it) cell that is just referencing the other sheet to set this formula up. As long as you have a cell that has the reference of a tab in its name, you can use FORMULATEXT() to turn that cells formula into a string and then extract the name that way. Easy deploying in your enterprise or organization. Combine Workbooks and WorkSheets Merge Tables based on key columns Split Data into Multiple Sheets Batch Convert xls, xlsx and PDF.Super Filter (save and apply filter schemes to other sheets) Advanced Sort by month/week/day, frequency and more Special Filter by bold, italic.Extract Text, Add Text, Remove by Position, Remove Space Create and Print Paging Subtotals Convert Between Cells Content and Comments.Exact Copy Multiple Cells without changing formula reference Auto Create References to Multiple Sheets Insert Bullets, Check Boxes and more.Select Duplicate or Unique Rows Select Blank Rows (all cells are empty) Super Find and Fuzzy Find in Many Workbooks Random Select.Merge Cells/Rows/Columns without losing Data Split Cells Content Combine Duplicate Rows/Columns.Super Formula Bar (easily edit multiple lines of text and formula) Reading Layout (easily read and edit large numbers of cells) Paste to Filtered Range.
If you want to have a free trial ( 30-day) of this utility, please click to download it, and then go to apply the operation according above steps.ĭemo: Easily reference the current sheet tab name in cell with Kutools for Excel You can see the current sheet name is referenced into the selected cell. 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.
Click Kutools Plus > Workbook > Insert Workbook Information. With the Insert Workbook Information utility of Kutools for Excel, you can easily reference the sheet tab name in any cell you want. Reference the current sheet tab name in cell with Kutools for Excel Then the current sheet tab name will be display in the cell. Go to the cell which you want to reference the current sheet tab name, please enter =TabName() and then press the Enter key. VBA code: reference tab name Function TabName()Ĥ. And then press Alt + Q keys to close the Microsoft Visual Basic for Applications window.
Copy and paste the below code into the Code window. In the Microsoft Visual Basic for Applications window, click Insert > Module. Press Alt + F11 to open the Microsoft Visual Basic for Applications window.Ģ. Reference the current sheet tab name in cell with User Define Functionīesides the above method, you can reference the sheet tab name in a cell with User Define Function.ġ. Click for details.ĭownload Kutools for Excel Now! ( 30-day free trail) into a cell, worksheet's header or footer as you need. Besides, you can reference workbook name, workbook path, user name etc. The Kutools for Excel's Insert Workbook Information utility helps easily insert active tab name into a specific cell. Easily insert tab name in a specific cell, header or footer in worksheet: