Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or
0
0
0
s2smodern

How to reference tab name in cell in Excel?

For referencing the current sheet tab name in a cell in Excel, you can get it done with a formula or User Define Function. This tutorial will guide you through as follows.

Reference the current sheet tab name in cell with formula

Reference the current sheet tab name in cell with User Define Function

Easily reference the current sheet tab name in cell with Kutools for Excel


Easily insert tab name in cell, header or footer in Excel

Click Enterprise> Workbook > Insert Workbook Information. The Kutools for Excel's Insert Workbook Information utility helps you easily insert active tab name in cell, header or footer in Excel as below screeshot shown:

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!



Reference the current sheet tab name in cell with formula

Please do as follow to reference the active sheet tab name in a specific cell in Excel.

1. Select a blank cell, copy and paste the formula =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255) into the Formula Bar, and the press the Enter key. See screenshot:

Now the sheet tab name is referenced in the cell.


Reference the current sheet tab name in cell with User Define Function

Besides the above method, you can reference the sheet tab name in a cell with User Define Function.

1. Press Alt + F11 to open the Microsoft Visual Basic for Applications window.

2. In the Microsoft Visual Basic for Applications window, click Insert > Module. See screenshot:

3. Copy and paste the below code into the Code window. And then press Alt + Q keys to close the Microsoft Visual Basic for Applications window.

VBA code: reference tab name

Function TabName()
  TabName = ActiveSheet.Name
End Function

4. Go to the cell which you want to reference the current sheet tab name, please enter =TabName() and then press the Enter key. Then the current sheet tab name will be display in the cell.


Reference the current sheet tab name in cell with Kutools for Excel

With the Insert Workbook Information utility of Kutools for Excel, you can easily reference the sheet tab name in any cell you want. Please do as follows.

Kutools for Excel : with more than 120 handy Excel add-ins, free to try with no limitation in 60 days.

1. Click Enterprise > Workbook > Insert Workbook Information. See screenshot:

2. 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.

You can see the current sheet name is referenced into the selected cell. See screenshot:


Easily reference the current sheet tab name in cell with Kutools for Excel

Kutools for Excel includes more than 120 handy Excel tools. Free to try with no limitation in 60 days. Download the free trial now!


Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
People in conversation:
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    John · 7 months ago
    Using the VBA macro, if I change the tab name the value in the cell does not get updated. Am I doing something wrong?
    • To post as a guest, your comment is unpublished.
      INSTINE · 1 months ago
      Dear John,
      for best example let me tell you one thing.
      if you want to change your code will be like this.

      Function John()
      John = ActiveSheet.Name
      End Function
    • To post as a guest, your comment is unpublished.
      crystal · 6 months ago
      Dear John,
      The formula can't update automatically. You need to refresh the formula manually after changing the tab name.
      Sorry about that.
      • To post as a guest, your comment is unpublished.
        Morgan · 3 months ago
        Refresh all formulas using the replace tool. Highlight everything, Find "=" (no quotes), Replace with "=" (no quotes). Nothing actually changes but every formula is reloaded.
  • To post as a guest, your comment is unpublished.
    Vikas · 1 years ago
    Thank you very much. :-)