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

or

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 Kutools Plus > 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. Download the full feature 60-day free trail of Kutools for Excel now!

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!

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words...
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum...
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns...
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Create Mailing List and Send Emails by Cell's Value...
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

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 300 handy Excel add-ins, free to try with no limitation in 60 days. 

1. Click Kutools Plus > 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:


Office Tab - Tabbed Browsing, Editing, and Managing of Workbooks in Excel:

Office Tab brings the tabbed interface as seen in web browsers such as Google Chrome, Internet Explorer new versions and Firefox to Microsoft Excel. It will be a time-saving tool and irreplaceble in your work. See below demo:

Click for free trial of Office Tab!

Office Tab for Excel

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

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


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • 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...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Ailec · 19 days ago
    What I really want is to name some tabs using with the names on some cells from another sheet (same document of course). How can I do that?
  • To post as a guest, your comment is unpublished.
    vanessa · 2 months ago
    Hi, I used the above suggestions but the first formula to reference the tab sheet name will not work on "excel" online. The second works, but the "Tabname" keeps showing the same tab name for all tabs on the workbook.
    • To post as a guest, your comment is unpublished.
      crystal · 2 months ago
      Hi,
      Sorry we didn't test in excel online. Can't help you with that yet. Thank you for your comment.
  • To post as a guest, your comment is unpublished.
    vanessa · 2 months ago
    hello, i am having trouble referencing a sheet name into a cell with online excel
  • To post as a guest, your comment is unpublished.
    Kurt · 5 months ago
    Excellent, thanks! Per: Reference the current sheet tab name in cell with formula
  • To post as a guest, your comment is unpublished.
    Alister Hood · 5 months ago
    Sorry, the comment line is wrong - should be Ctrl-Alt-Shift-F9
  • To post as a guest, your comment is unpublished.
    LuisV · 7 months ago
    FYI, you need to have more than one sheet in your workbook for this to work. Otherwise, the formula will display the filename but no sheet name.
    • To post as a guest, your comment is unpublished.
      crystal · 7 months ago
      Good Day,
      Thank you for your comment. I have tested the formula in a workbook that has only one sheet, but everything was running smoothly. The formula only displays the sheet name no matter how many worksheets existing in a workbook.
  • To post as a guest, your comment is unpublished.
    bryan · 10 months ago
    Hi, using the =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255) formula in desktop excel works, but not in online excel.. can you explain why that is?it returns #value error in the cell.

    is there a workaround for this? Thanks!
    • To post as a guest, your comment is unpublished.
      Bob · 10 months ago
      You are a champ! Nothing like a fix that one can copy and paste and have it work. Thank you.
  • To post as a guest, your comment is unpublished.
    John · 1 years 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.
      Alister Hood · 5 months ago
      Of course nothing's ever simple with Microsoft products is it?
      My solution actually breaks it, because it means everywhere you use the function it gets the name of the sheet where the last change was made, not the name of the sheet where the function is used.
    • To post as a guest, your comment is unpublished.
      Alister Hood · 5 months ago
      Function TabName()
      'Need to make it volatile otherwise it is never recalculated unless we do Ctrl-Shift-F9
      Application.Volatile
      TabName = ActiveSheet.Name
      End Function
    • To post as a guest, your comment is unpublished.
      INSTINE · 1 years 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 · 1 years 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 · 1 years 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 · 2 years ago
    Thank you very much. :-)