How to match the cell value with sheet tab name or vice versa in Excel?
If you want to reference a sheet tab name to a specified cell, or name the sheet with a specified cell value, the following methods can help you.
Match the cell value with sheet tab name with formula
Match the cell value with sheet tab name with Kutools for Excel
Name the sheet tab with cell value by VBA code
Name the sheet tab with cell value by Kutools for Excel
Match the cell value with sheet tab name with formula
You can apply the following formula to match the cell value with sheet tab name in Excel.
1. Select a blank cell to locate the sheet tab name, enter the below formula into it and then press the Enter key.
=MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)
Then you can see the sheet tab name is referenced into the blank cell.
Easily insert tab name in a specific cell, header or footer in worksheet:
The Kutools for Excel's Insert Workbook Information utility helps easily insert active tab name into a specific cell. Besides, you can reference workbook name, workbook path, user name etc. into a cell, worksheet's header or footer as you need. Click for details.
Download Kutools for Excel Now! (30-day free trail)
Match the cell value with sheet tab name with Kutools for Excel
If formula is hard to remember, here I recommend you a handy tool – Kutools for Excel. With its Insert Workbook Information utility, you can easily match the cell value with sheet tab name in Excel with only several clicks.
Before applying Kutools for Excel, please download and install it firstly.
1. Select a blank cell for placing the sheet tab name, then click Kutools Plus > Workbook > Insert Workbook Information.
2. In the Insert Workbook Information dialog box, select the Worksheet name option in the Information section, keep the Range option selected in the Insert at section, and finally click the OK button. See screenshot:
Now you can see the sheet tab name is populated into the selected cell.
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.
Name the sheet tab with cell value by VBA code
This section will show you a VBA method of naming the sheet tab with specified cell content in Excel. Please do as follows.
1. Press Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Application dialog box.
2. In the Microsoft Visual Basic for Application dialog box, click Insert > Module. Then copy and paste the below VBA code into the Module window.
VBA code: name the sheet tab with cell value
Sub TabName()
ActiveSheet.Name = ActiveSheet.Range("A1")
End Sub
Note: In the above code, A1 is the cell value you want to name the sheet tab, you can change it to other specified cell as you need.
3. Press the F5 key to run the code, then the sheet tab will be renamed with the content of cell A1 immediately.
Name the sheet tab with cell value by Kutools for Excel
The Rename Multiple Worksheet utility of Kutools for Excel can also help you to rename a sheet tab with a specified cell value. Please do as follows.
Before applying Kutools for Excel, please download and install it firstly.
1. Select the cell which content you need to use as sheet tab name, then click Kutools Plus > Worksheet > Rename Worksheets.
2. In the Rename Multiple Worksheets dialog box, check the worksheet in the Worksheets box which you will rename with the content of a specified cell, select the Replace original sheet name option in the Rename Options section, then choose the From specific range or Rename worksheets with specific cell option, and finally click the OK button.
3. After clicking the OK button, a dialog box will pop up to tell you how many worksheets are renamed successfully, please click the OK button.
Now the sheet tab is renamed by content of cell A1 as above screenshot shown.
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.
Match the cell value with sheet tab name or vice versa in Excel
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
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!