How to quickly insert sheet names in cells in Excel?

Is there an easy way to insert the current worksheet's name in one cell? How to insert all worksheets' name in cells? This article will bring you tricky methods to solve these problems.

Quickly insert current sheet name in a cell with functions

Quickly insert all sheet names in cells with VBA

Quickly insert active sheet’s name with Kutools for Excel good idea3

Quickly insert all sheet names with hyperlinks in cells as an index good idea3


arrow blue right bubble Quickly insert current sheet name in a cell with functions

Just enter the formula of =RIGHT(CELL("filename",D2),LEN(CELL("filename",D2))-FIND("]",CELL("filename",D2))) in any cell and press Enter key, it shows the current worksheet's name in the cell.
doc-insert-sheets-name-into-cells1

This formula is only able to show current worksheet's name, but not other worksheet's name.


arrow blue right bubble Quickly insert all sheet names in cells with VBA

If you want to inset all sheet names in cells, VBA macro is a good choice.

Step 1: Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.

Step 2: Click Insert > Module, and paste the following macro in the Module Window.

VBA for inserting all worksheets' names in cells:

Sub SheetNames()
Columns(1).Insert
For i = 1 To Sheets.Count
Cells(i, 1) = Sheets(i).Name
Next i
End Sub

Step 3: Press the F5 key to run this macro. Then you will all worksheets' name are listed in Column A of current worksheet. See screenshot:
doc-insert-sheets-name-into-cells2

Note: In the VBA code, you can change Cells(i, 1) to other reference to insert the sheet names start at other cells. For instance, insert sheet names start from C3, change it to Cells(i+2, 3).


arrow blue right bubble Quickly insert active sheet’s name with Kutools for Excel

If you want to insert the active sheet’s information including sheet name, workbook name, file path and so on to a cell or header/footer, you can use Kutools for Excel’s Insert Workbook Information.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

1. Select a cell or a range to put the sheet name, and click Kutools Plus > Workbook > Insert Workbook Information.doc insert worksheet information 1

2. Then select the workbook information you need to insert from Information section, and specify the location you want to place the information from Insert at section. Then click OK.

doc 1

You can click here to know more about Insert Workbook Information.

arrow blue right bubble Insert workbook information into cell/Header/Footer


arrow blue right bubble Quickly insert all sheet names with hyperlinks in cells as an index

Kutools for Excel's Create List of Sheet Name utility not only inserts all sheet names in cells, but also insert hyperlinks to corresponding sheets too.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

Step 1: Click the Kutools Plus > Worksheet > Create List of Sheet Names.
doc-insert-sheets-name-into-cells3

Step 2: In the Create List of Sheet Names dialog box, specify the settings according to your needs, and click OK.
doc-insert-sheets-name-into-cells4

Then you will see all sheet names are inserted in a new worksheet, and each sheet name link to corresponding worksheet. See following screenshots:

Worksheet names with hyperlinks
Worksheet names with macro buttons
doc-insert-sheets-name-into-cells5
doc-insert-sheets-name-into-cells6

The Create List of Sheet Name utility makes it easy for you to create a list of all worksheet names of the active workbook in a new worksheet, which contains hyperlinks or macro buttons for quickly navigate to other worksheets. Click to know more about this utility.

arrow blue right bubble List all sheet names with hyperlinks



Kutools for Excel: 300 + functions you must have in Excel, 30-day free trial from here

Easily Combine multiple sheets/Workbook into one Single sheet or Workbook

To combinne multiples sheets or workbooks into one sheet or workbook may be edious in Excel, but with the Combine function in Kutools for Excel, you can combine merge dozens of sheets/workbooks into one sheet or workbook, also, you can consolidate the sheets into one by several clicks only.  Click for full-featured 30 days free trial!
combine sheets
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

The Best Office Productivity Tools

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. 60-day money back guarantee.
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.
    Ashley Pereira · 1 years ago
    how to find the sheet name (section name ) when you type employee no. in a cell? A workbook has 15 sheets named as per sections of the department.In each section has 100 employees in range A2:A101with unique employee no. I have a list of 50 employee nos in different sections. In a new work sheet how to find the section name which corresponds to the employee no.
  • To post as a guest, your comment is unpublished.
    RS · 2 years ago
    How do you get this formula to copy the tabnames into consecutive columns. In other words not vertically but horizontally.
    • To post as a guest, your comment is unpublished.
      John · 2 years ago
      you can copy the data entered, then paste Transpose, this converts Cols to Rows, and Rows to Cols.
  • To post as a guest, your comment is unpublished.
    Daniel · 2 years ago
    Just tried now the macro for inserting all the sheet's name in one sheet. Awesome! Thank you very much
  • To post as a guest, your comment is unpublished.
    Christina · 2 years ago
    How do you get the VBA to start in a specific cell instead of A1?
    • To post as a guest, your comment is unpublished.
      Timothy · 2 years ago
      Just add to i like I did below. If you add to i you can start on any row you would like.

      Sub GetNames()

      For i = 1 To Sheets.Count

      Cells(i + 6, 1) = Sheets(i).Name

      Next i
      End Sub
      • To post as a guest, your comment is unpublished.
        Sunny · 2 years ago
        Thank u for your supplement.
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      You can change the number in Cells(i, 1) = Sheets(i).Name to other to insert the sheet names in other column, for instance, insert start from C1,change Cells(i, 1) = Sheets(i) to Cells(i, 3) = Sheets(i), but this VBA only can insert the sheet names start from the row 1.
  • To post as a guest, your comment is unpublished.
    Adolphles · 3 years ago
    Thanks!! this was was a great help.
  • To post as a guest, your comment is unpublished.
    Anas · 3 years ago
    Hi

    Kindly i want VBA code to insert file name in specific cell.

    Thanks
  • To post as a guest, your comment is unpublished.
    Abdul R Shaikh · 3 years ago
    Great site was very helpful.
    I have different tab names and I get the names in one sheet using your code, but it gives names of all the tab names, is there anyway we can add code to select from certain tab number or something like that.
  • To post as a guest, your comment is unpublished.
    mohamed ahmed · 4 years ago
    I have multiple project sheets database with different tab name and this name is shown in master sheet table. which formula can i give that when i insert new tab it should automatically updated in master table.
  • To post as a guest, your comment is unpublished.
    Elise Mansour · 4 years ago
    Can anyone help me with this:
    Create a macro that creates 10 sheets and name them Sheet1 to Sheet10 but using a loop
  • To post as a guest, your comment is unpublished.
    Manish Gupta · 4 years ago
    Hello,

    Can you please help me with the simple VBA code. I have a list of Names in Column A. Specific Range - (A2:A251) - Now I need to create new spreadsheets with these names. The names are driven from a different sheet, thus they keep changing. So in short, if I have 10 names today, they might not appear tomorrow. So on the click of button all older spreadsheets (except 1) should be deleted first and then from the names on the column, new ones should get created.

    Please advice if this is possible to do?

    Thanks,

    Manish Gupta
  • To post as a guest, your comment is unpublished.
    Raaj Kanchan · 4 years ago
    Thanks for the help #Macleen. It helped me a lot. Keep posting such tips. :lol:
  • To post as a guest, your comment is unpublished.
    Abhijeet · 5 years ago
    Hi, I have one issue which i am unable to solve is,
    How do i display multiple sheets name in respective cells (in list) in a single sheet only?
  • To post as a guest, your comment is unpublished.
    Andi2015 · 5 years ago
    So I entered the formula as a function as per instructions above into my spreadsheet and it works. Great, thanks! However it appears I can no longer edit the sheet name on the tab by double clicking as previously. Is this a known and deliberate side effect? How do I edit the sheet name now? I am not a VBA person so basic instructions would be appreciated. many thanks
  • To post as a guest, your comment is unpublished.
    GAP · 5 years ago
    Does anyone know if it is possible to replicate this in Google Spreadsheet?
  • To post as a guest, your comment is unpublished.
    Ahtasham · 5 years ago
    =RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename")))

    First save your file than enter this formula anywhere
    • To post as a guest, your comment is unpublished.
      James Rock · 4 years ago
      this formula you mentioned is not successful because i have many sheets in my file and whenever i apply this formula in one sheet its good but when i apply this formula in multiple sheets it gives only one sheet name in all sheets even i am not doing this while selecting all sheets.

      CORRECT METHOD IS :
      =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
      • To post as a guest, your comment is unpublished.
        Pawan G Nagar · 3 years ago
        *****************Thanks a lot*****************
      • To post as a guest, your comment is unpublished.
        Judi · 3 years ago
        This is excellent... thank you!
        • To post as a guest, your comment is unpublished.
          JAMES ROCK · 3 years ago
          You're most welcome my dear... :)
  • To post as a guest, your comment is unpublished.
    Waqas Mansoor · 5 years ago
    Great! Saved my day!
  • To post as a guest, your comment is unpublished.
    Jason Griffith · 6 years ago
    Hello,
    Looks like a great site with lots of helpful information.
    I have a question but I don't know if it's possible or not.
    I'm trying to make a workbook with a lot of sheets that are linked to one master sheet. All the relevant information will be copied from the master sheet to other sheets.
    My question:
    Each sheet will named as per employee. If I type all names into one cell in the master can it be copied to the tab (name of sheet)?
    For example on the master sheet CELL D2 has 5 employees names and I will have 5 sheets titled with each employees names.
    If it's not clear what I'm trying to say I will gladly send my workbook for review.
    Many thanks for any help I receive.
  • To post as a guest, your comment is unpublished.
    Macleen · 6 years ago
    How to display the sheet names in different cell, because this code, just show the sheet names only from cell A1. I want to start it at cell A10.


    Sub SheetNames()
    Columns(1).Insert
    For i = 1 To Sheets.Count
    Cells(i, 1) = Sheets(i).Name
    Next i
    End Sub
    • To post as a guest, your comment is unpublished.
      ThaMilkMan · 3 years ago
      [quote name="Macleen"]cell A10.

      Sub SheetNames()
      Columns(1).Insert
      For i = 1 To Sheets.Count
      Cells(I + 9, 1) = Sheets(i).Name
      Next i
      End Sub[/quote]

      Please see the example within quotes to change the starting range.
  • To post as a guest, your comment is unpublished.
    NAQAASH · 6 years ago
    I have first sheet (named "DATA"), contains table(column name Location1, Location2 etc).

    Second sheet named LOCATOIN-1,

    Third sheet name LOCATION-2, and so on and so forth.

    Now, in LOCATION-1 sheet, i need to put some data from the table (from "DATA" sheet, column "Location1"). I will take data as it is i mean i will use "=".

    How to fetch this data for each sheet... kindly help
    • To post as a guest, your comment is unpublished.
      Joeh · 6 years ago
      Hi...
      I think yo can simply use copy from DATA sheet , the paste in LOCATION-1 cell as link. Or you can manually type the address such
      ='DATA'!$I$105
      where 'DATA' refer to sheet that contain source data,$I$105 refer to column I & row 105 which is a cell adress to be linked.


      [quote name="NAQAASH"]I have first sheet (named "DATA"), contains table(column name Location1, Location2 etc).

      Second sheet named LOCATOIN-1,

      Third sheet name LOCATION-2, and so on and so forth.

      Now, in LOCATION-1 sheet, i need to put some data from the table (from "DATA" sheet, column "Location1"). I will take data as it is i mean i will use "=".

      How to fetch this data for each sheet... kindly help[/quote]
  • To post as a guest, your comment is unpublished.
    Rizwan · 6 years ago
    i couldn't get this VBA's last step.