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 all sheet names with hyperlinks in cells as an index

Kutools for Excel: add 120 new features in Excel. Save one hour every day.
Classic Menu for Office: brings back classic menus to Office 2010 and 2013 (includes Office 365).
Office Tab: brings tabbed interface to Office as the use of web browser Chrome, Firefox and Internet Explorer.

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

Hot
Amazing! Using Tabs in Excel like Firefox, Chrome, Internet Explore 10!

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


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 includes more than 120 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.

Step 1: Click the Enterprise > Worksheet Tools > 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 hyperlinksWorksheet names with macro buttons
doc-insert-sheets-name-into-cells5doc-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.


Kutools for Excel

More than 120 Advanced Functions for Excel 2013, 2010, 2007 and Office 365.

screen shot

btn read more     btn download     btn purchase

Comments  

0#Rizwan2013-11-19 04:34
i couldn't get this VBA's last step.
Reply | Reply with quote | Quote
0#NAQAASH2014-01-15 03:54
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
Reply | Reply with quote | Quote
0#Joeh2014-01-18 10:34
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.


Quoting 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
Reply | Reply with quote | Quote
0#Macleen2014-06-10 12:56
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
Reply | Reply with quote | Quote
0#Jason Griffith2014-06-11 00:12
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.
Reply | Reply with quote | Quote

Add comment


Security code
Refresh