Saltar al contenido principal

¿Cómo hacer referencia al nombre de la pestaña en la celda en Excel?

Para hacer referencia al nombre de la pestaña de la hoja actual en una celda en Excel, puede hacerlo con una fórmula o función definida por el usuario. Este tutorial lo guiará de la siguiente manera.

Haga referencia al nombre de la pestaña de la hoja actual en la celda con fórmula
Haga referencia al nombre de la pestaña de la hoja actual en la celda con la función definida por el usuario
Haga referencia fácilmente al nombre de la pestaña de la hoja actual en la celda con Kutools para Excel


Haga referencia al nombre de la pestaña de la hoja actual en la celda con fórmula

Haga lo siguiente para hacer referencia al nombre de la pestaña de la hoja activa en una celda específica en Excel.

1. Seleccione una celda en blanco, copie y pegue la fórmula = MID (CELDA ("nombre de archivo", A1), ENCONTRAR ("]", CELDA ("nombre de archivo", A1)) + 1,255) en la barra de fórmulas y presione el Participar llave. Ver captura de pantalla:

Ahora se hace referencia al nombre de la pestaña de la hoja en la celda.

Inserte fácilmente el nombre de la pestaña en una celda, encabezado o pie de página específicos en la hoja de trabajo:

La Kutools for Excel's Insertar información del libro La utilidad ayuda a insertar fácilmente el nombre de la pestaña activa en una celda específica. Además, puede hacer referencia al nombre del libro de trabajo, la ruta del libro de trabajo, el nombre de usuario, etc.en una celda, el encabezado o pie de página de la hoja de trabajo, según lo necesite. Haga clic para más detalles.
¡Descarga Kutools para Excel ahora! (Pista gratuita de 30 días)


Haga referencia al nombre de la pestaña de la hoja actual en la celda con la función definida por el usuario

Además del método anterior, puede hacer referencia al nombre de la pestaña de la hoja en una celda con la función definida por el usuario.

1. Prensa otro + F11 para abrir el Microsoft Visual Basic para aplicaciones ventana.

2. En el Microsoft Visual Basic para aplicaciones ventana, haga clic recuadro > Módulo. Ver captura de pantalla:

3. Copie y pegue el código siguiente en la ventana Código. Y luego presione otro + Q llaves para cerrar el Microsoft Visual Basic para aplicaciones ventana.

Código de VBA: nombre de la pestaña de referencia

Function TabName()
  TabName = ActiveSheet.Name
End Function

4. Vaya a la celda a la que desea hacer referencia el nombre de la pestaña de la hoja actual, ingrese = TabName () y luego presione el Participar llave. Luego, el nombre de la pestaña de la hoja actual se mostrará en la celda.


Haga referencia al nombre de la pestaña de la hoja actual en la celda con Kutools para Excel

Con la Insertar información del libro utilidad de Kutools for Excel, puede hacer referencia fácilmente al nombre de la pestaña de la hoja en cualquier celda que desee. Haz lo siguiente.

1. Hacer clic en Kutools Más > Libro de trabajo > Insertar información del libro. Ver captura de pantalla:

2. En el Insertar información del libro cuadro de diálogo, seleccione Nombre de la hoja de trabajo existentes Información sección, y en la Insertar en sección, seleccione la Gama de Colores opción, y luego seleccione una celda en blanco para ubicar el nombre de la hoja, y finalmente haga clic en el OK del botón.

Puede ver que el nombre de la hoja actual está referenciado en la celda seleccionada. Ver captura de pantalla:

  Si desea tener una prueba gratuita (30 días) de esta utilidad, haga clic para descargarloy luego vaya a aplicar la operación según los pasos anteriores.


Demostración: haga referencia fácilmente al nombre de la pestaña de la hoja actual en la celda con Kutools para Excel

Kutools for Excel incluye más de 300 útiles herramientas de Excel. Prueba gratis sin límite en 30 días. ¡Descargue la versión de prueba gratuita ahora!

Las mejores herramientas de productividad de oficina

🤖 Asistente de IA de Kutools: Revolucionar el análisis de datos basado en: Ejecución inteligente   |  Generar codigo  |  Crear fórmulas personalizadas  |  Analizar datos y generar gráficos  |  Invocar funciones de Kutools...
Características populares: Buscar, resaltar o identificar duplicados   |  Eliminar filas en blanco   |  Combine columnas o celdas sin perder datos   |   Ronda sin fórmula ...
Super búsqueda: Búsqueda virtual de criterios múltiples    Búsqueda V de valores múltiples  |   VLookup en varias hojas   |   Búsqueda difusa ....
Lista desplegable avanzada: Crear rápidamente una lista desplegable   |  Lista desplegable dependiente   |  Lista desplegable de selección múltiple ....
Administrador de columnas: Agregar un número específico de columnas  |  Mover columnas  |  Toggle Estado de visibilidad de columnas ocultas  |  Comparar rangos y columnas ...
Características destacadas: Enfoque de cuadrícula   |  Vista de diseño   |   Gran barra de fórmulas    Administrador de hojas y libros de trabajo   |  Biblioteca de Recursos (Texto automático)   |  Selector de fechas   |  Combinar hojas de trabajo   |  Cifrar/descifrar celdas    Enviar correos electrónicos por lista   |  Súper filtro   |   Filtro especial (filtro negrita/cursiva/tachado...) ...
Los 15 mejores conjuntos de herramientas12 Texto Herramientas (Añadir texto, Quitar caracteres, ...)   |   50+ Tabla Tipos (Diagrama de Gantt, ...)   |   40+ Práctico Fórmulas (Calcular la edad según el cumpleaños, ...)   |   19 Inserción Herramientas (Insertar código QR, Insertar imagen desde la ruta, ...)   |   12 Conversión Herramientas (Números a palabras, Conversión de Moneda, ...)   |   7 Fusionar y dividir Herramientas (Filas combinadas avanzadas, Células partidas, ...)   |   ... y más

Mejore sus habilidades de Excel con Kutools for Excel y experimente la eficiencia como nunca antes. Kutools for Excel ofrece más de 300 funciones avanzadas para aumentar la productividad y ahorrar tiempo.  Haga clic aquí para obtener la función que más necesita...

Descripción


Office Tab lleva la interfaz con pestañas a Office y hace que su trabajo sea mucho más fácil

  • Habilite la edición y lectura con pestañas en Word, Excel, PowerPoint, Publisher, Access, Visio y Project.
  • Abra y cree varios documentos en nuevas pestañas de la misma ventana, en lugar de en nuevas ventanas.
  • ¡Aumenta su productividad en un 50% y reduce cientos de clics del mouse todos los días!
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