Vai al contenuto principale

Come fare riferimento al nome della scheda nella cella in Excel?

Per fare riferimento al nome della scheda del foglio corrente in una cella in Excel, puoi farlo con una formula o una funzione definita dall'utente. Questo tutorial ti guiderà attraverso come segue.

Fare riferimento al nome della scheda del foglio corrente nella cella con la formula
Fare riferimento al nome della scheda del foglio corrente nella cella con Funzione definita dall'utente
Fai facilmente riferimento al nome della scheda del foglio corrente nella cella con Kutools per Excel


Fare riferimento al nome della scheda del foglio corrente nella cella con la formula

Si prega di fare come segue per fare riferimento al nome della scheda del foglio attivo in una cella specifica in Excel.

1. Seleziona una cella vuota, copia e incolla la formula = MID (CELL ("nomefile", A1), TROVA ("]", CELLA ("nomefile", A1)) + 1,255) nella barra della formula e premere il pulsante entrare chiave. Vedi screenshot:

Ora viene fatto riferimento al nome della scheda del foglio nella cella.

Inserisci facilmente il nome della scheda in una cella, intestazione o piè di pagina specifici nel foglio di lavoro:

I Kutools for Excel's Inserisci le informazioni sulla cartella di lavoro l'utilità aiuta a inserire facilmente il nome della scheda attiva in una cella specifica. Inoltre, puoi fare riferimento al nome della cartella di lavoro, al percorso della cartella di lavoro, al nome utente ecc. In una cella, nell'intestazione o nel piè di pagina del foglio di lavoro di cui hai bisogno. Clicca per vedere i dettagli.
Scarica Kutools per Excel adesso! (percorso gratuito di 30 giorni)


Fare riferimento al nome della scheda del foglio corrente nella cella con Funzione definita dall'utente

Oltre al metodo sopra, puoi fare riferimento al nome della scheda del foglio in una cella con Funzione definita dall'utente.

1. Stampa altro + F11 per aprire il Microsoft Visual Basic, Applications Edition finestra.

2. Nel Microsoft Visual Basic, Applications Edition finestra, fare clic inserire > Moduli. Vedi screenshot:

3. Copiare e incollare il codice seguente nella finestra del codice. E poi premere altro + Q i tasti per chiudere il file Microsoft Visual Basic, Applications Edition finestra.

Codice VBA: nome della scheda di riferimento

Function TabName()
  TabName = ActiveSheet.Name
End Function

4. Vai alla cella a cui vuoi fare riferimento al nome della scheda del foglio corrente, inserisci = TabName () e quindi premere il entrare chiave. Quindi il nome della scheda del foglio corrente verrà visualizzato nella cella.


Fai riferimento al nome della scheda del foglio corrente nella cella con Kutools per Excel

Grazie alla Inserisci le informazioni sulla cartella di lavoro utilità di Kutools for Excel, puoi facilmente fare riferimento al nome della scheda del foglio in qualsiasi cella che desideri. Si prega di fare quanto segue.

1. Clic Kutools Plus > Cartella di lavoro > Inserisci le informazioni sulla cartella di lavoro. Vedi screenshot:

2. Nel Inserisci le informazioni sulla cartella di lavoro finestra di dialogo, selezionare Nome del foglio di lavoro nel Informazioni sezione e nel file Inserisci in sezione, selezionare il Escursione opzione, quindi selezionare una cella vuota per individuare il nome del foglio e infine fare clic su OK pulsante.

Puoi vedere che il nome del foglio corrente è referenziato nella cella selezionata. Vedi screenshot:

  Se desideri avere una prova gratuita (30 giorni) di questa utility, fare clic per scaricarlo, quindi andare ad applicare l'operazione secondo i passaggi precedenti.


Demo: fai facilmente riferimento al nome della scheda del foglio corrente nella cella con Kutools per Excel

Kutools for Excel include più di 300 utili strumenti Excel. Prova gratuita senza limitazioni per 30 giorni. Scarica subito la versione di prova gratuita!

I migliori strumenti per la produttività in ufficio

🤖 Assistente AI di Kutools: Rivoluziona l'analisi dei dati basandosi su: Esecuzione intelligente   |  Genera codice  |  Crea formule personalizzate  |  Analizzare i dati e generare grafici  |  Richiama le funzioni di Kutools...
Funzioni popolari: Trova, evidenzia o identifica i duplicati   |  Elimina righe vuote   |  Combina colonne o celle senza perdere dati   |   Round senza formula ...
Super ricerca: VLookup a criteri multipli    VLookup a valori multipli  |   VLookup su più fogli   |   Ricerca fuzzy ....
Elenco a discesa avanzato: Crea rapidamente un elenco a discesa   |  Elenco a discesa dipendente   |  Elenco a discesa a selezione multipla ....
Gestore di colonna: Aggiungi un numero specifico di colonne  |  Sposta colonne  |  Attiva/disattiva lo stato di visibilità delle colonne nascoste  |  Confronta intervalli e colonne ...
Funzionalità in primo piano: Messa a fuoco della griglia   |  Vista di progettazione   |   Grande barra delle formule    Gestore di cartelle di lavoro e fogli   |  Resource Library (Testo automatico)   |  Date picker   |  Combina fogli di lavoro   |  Crittografa/decrittografa le celle    Invia e-mail per elenco   |  Super filtro   |   Filtro speciale (filtro grassetto/corsivo/barrato...) ...
I 15 migliori set di strumenti12 Testo Strumenti (aggiungi testo, Rimuovi personaggi, ...)   |   50+ Grafico Tipi (Diagramma di Gantt, ...)   |   40+ Pratico Formule (Calcola l'età in base al compleanno, ...)   |   19 Inserimento Strumenti (Inserisci il codice QR, Inserisci immagine dal percorso, ...)   |   12 Conversione Strumenti (Numeri in parole, Conversione di valuta, ...)   |   7 Unisci e dividi Strumenti (Combina righe avanzate, Celle divise, ...)   |   ... e altro ancora

Potenzia le tue competenze di Excel con Kutools per Excel e sperimenta l'efficienza come mai prima d'ora. Kutools per Excel offre oltre 300 funzionalità avanzate per aumentare la produttività e risparmiare tempo.  Fai clic qui per ottenere la funzionalità di cui hai più bisogno...

Descrizione


Office Tab porta l'interfaccia a schede in Office e semplifica notevolmente il tuo lavoro

  • Abilita la modifica e la lettura a schede in Word, Excel, PowerPoint, Publisher, Access, Visio e Project.
  • Apri e crea più documenti in nuove schede della stessa finestra, piuttosto che in nuove finestre.
  • Aumenta la produttività del 50% e riduce ogni giorno centinaia di clic del mouse!
Comments (24)
Rated 0.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
sorry your formulas and everything are incorrect on this page.
after direct copy/paste your THEORIES were WRONG
ZERO OUT OF TWO ATTEMPTS WORKED USING YOUR SUGGESTIONS
Rated 0.5 out of 5
This comment was minimized by the moderator on the site
Hi Julia,
What kind of erro did you get?
To be mentioned, the formula provided in the post can only be applied in English system environment Excel. If you have Excel in a different language than English, please convert the formula from English to the language you are currently using.
You can translate the formula in this page: https://de.excel-translator.de/translator/
This comment was minimized by the moderator on the site
The formula at the top won't work until you save the file to your hard drive.
This comment was minimized by the moderator on the site
If you're using Excel Online. I found a solution for this issue.

You need to use 2 cells to make it work. As long as you have a cell that has the reference of a tab in its name, you can use FORMULATEXT() to turn that cells formula into a string and then extract the name that way. I can't imagine a scenario where you will want to reference another sheet and you wont already have a cell referencing that sheet for information on it, but you can always just make a blank/hidden (however you want to do it) cell that is just referencing the other sheet to set this formula up. In the below example, it is referencing cell B1 and cell B1 just contains =Sheet2!A1 as a reference to the sheet I want to name. If you use a name for a sheet with a space in it (example: Sheet 1) it would show up as (='Sheet 1'A1). I used an IF function and an ISERROR function to search if the string contains a space or not and two MID functions to extract the name of the sheet from both scenarios. If you update the name of the referenced sheet, cell B1 will change its formula and subsequently change the string and output the correct name each time.

=IF(ISERROR(FIND(" ",FORMULATEXT(B1))),MID(FORMULATEXT(B1),2,FIND("!",FORMULATEXT(B1))-2),MID(FORMULATEXT(B1),3,FIND("!",FORMULATEXT(B1))-4))
This comment was minimized by the moderator on the site
If you're using Excel Online. I found a solution for this issue.

You need to use 2 cells to make it work. As long as you have a cell that has the reference of a tab in its name, you can use FORMULATEXT() to turn that cells formula into a string and then extract the name that way. I can't imagine a scenario where you will want to reference another sheet and you wont already have a cell referencing that sheet for information on it, but you can always just make a blank/hidden (however you want to do it) cell that is just referencing the other sheet to set this formula up. In the below example, it is referencing cell B1 and cell B1 just contains =Sheet2!A1 as a reference to the sheet I want to name. If you use a name for a sheet with a space in it (example: Sheet 1) it would show up as (='Sheet 1'A1). I used an IF function and an ISERROR function to search if the string contains a space or not and two MID functions to extract the name of the sheet from both scenarios. If you update the name of the referenced sheet, cell B1 will change its formula and subsequently change the string and output the correct name each time.

=IF(ISERROR(FIND(" ",FORMULATEXT(B1))),MID(FORMULATEXT(B1),2,FIND("!",FORMULATEXT(B1))-2),MID(FORMULATEXT(B1),3,FIND("!",FORMULATEXT(B1))-4))
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
Hi,
Sorry we didn't test in excel online. Can't help you with that yet. Thank you for your comment.
This comment was minimized by the moderator on the site
hello, i am having trouble referencing a sheet name into a cell with online excel
This comment was minimized by the moderator on the site
Excellent, thanks! Per: Reference the current sheet tab name in cell with formula
This comment was minimized by the moderator on the site
Sorry, the comment line is wrong - should be Ctrl-Alt-Shift-F9
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations