The following illustration should help:
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.
Type = followed by the sheet name, an exclamation point, and the cell being copied. For example, =Sheet1! A1 or ='Sheet number two'! B4 .
Click the tab of the sheet you want to rename. Select Rename... from the menu that appears. Type the desired name for the sheet. Click anywhere outside of the tab or press Enter on your keyboard when you're finished, and the sheet will be renamed.
Here is what I found for Google Sheets:
To get the current sheet name in Google sheets, the following simple script can help you without entering the name manually, please do as this:
Click Tools > Script editor
In the opened project window, copy and paste the below script code into the blank Code window, see screenshot:
......................
function sheetName() { return SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getName(); }
Then save the code window, and go back to the sheet that you want to get its name, then enter this formula: =sheetName()
in a cell, and press Enter key, the sheet name will be displayed at once.
See this link with added screenshots: https://www.extendoffice.com/documents/excel/5222-google-sheets-get-list-of-sheets.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With