Saltar al contenido principal

¿Cómo visualizar números almacenados como texto en Excel?

Supongamos que tengo el siguiente rango de datos, el número de identificación en la tabla original es formato numérico, en la celda de búsqueda que se almacena como texto, cuando aplico la función VLOOKUP normal, obtendré un resultado de error como se muestra a continuación. En este caso, ¿cómo podría obtener la información correcta si el número de búsqueda y el número original en la tabla tienen un formato de datos diferente?

Números de Vlookup almacenados como texto con fórmulas

doc vlookup número almacenado como texto 1


flecha azul burbuja derecha Números de Vlookup almacenados como texto con fórmulas

Si su número de búsqueda está almacenado como texto y el número original en la tabla tiene formato de número real, aplique la siguiente fórmula para devolver el resultado correcto:

Ingrese esta fórmula: = BUSCARV (VALOR (G1), A2: D15,2, FALSO) en una celda en blanco donde desea ubicar el resultado y presione Participar para devolver la información correspondiente que necesita, vea la captura de pantalla:

doc vlookup número almacenado como texto 2

Notas:

1. En la fórmula anterior: G1 son los criterios que desea buscar, A2: D15 es el rango de la tabla que contiene los datos que desea utilizar y el número 2 indica el número de columna que tiene el valor correspondiente que desea devolver.

2. Si su valor de búsqueda tiene formato numérico y el número de identificación en la tabla original se almacena como texto, la fórmula anterior no funcionará, debe aplicar esta fórmula: = BUSCARV (TEXTO (G1,0), A2: D15,2, FALSO) para obtener el resultado correcto que necesita.

doc vlookup número almacenado como texto 3

3. Si no está seguro de cuándo tendrá números y cuándo tendrá texto, puede usar esta fórmula: =IFERROR(VLOOKUP(VALUE(G1),A2:D15,2,0),VLOOKUP(TEXT(G1,0),A2:D15,2,0)) para manejar ambos casos.

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 (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Worked. Thank you! 
This comment was minimized by the moderator on the site
Hello,
You are welcome. Glad it helps. Any questions, please feel free to contact us. Have a great day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Thanks so much!!!!! This worked for me, the #3 solution! HUGE help!!!
This comment was minimized by the moderator on the site
Hello,
You are welcome. Glad it helps. Any questions, please feel free to contact us. Have a great day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Thank You... :) Its worked for me
This comment was minimized by the moderator on the site
Hello,
You are welcome. Glad it helps. Any questions, please feel free to contact us. Have a great day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Same thing here. The problem is the data range. For some reason, even when the data type is text, MS Excel still looks at it as a number. But if you hit enter, it looks at it as text. So I usually end up with the data range where some of it is numbers and others, text.

SOLUTION: Use IFERROR function to address BOTH possibilities: IFERROR(VLOOKUP(TEXT(A1,0),$A$1:$A$100,1,FALSE),VLOOKUP(VALUE(A1),$A$1:$A$100,1,FALSE)). Hope this helps.
This comment was minimized by the moderator on the site
Unfortunately this method does not Always work. I import numbers in a column defined as tekst. I lookup these numbers in a table in which the numbers are also stored as tekst. I would say a Vlookup should work, but nor the standard lookup, nor the lookup with TEXT() or VALUE() function as expected. When I retype all values in the columns it works as expected, so there's no error in the formula.
This comment was minimized by the moderator on the site
I have the same problem @Rens, does anybody know a solution for this?
This comment was minimized by the moderator on the site
Same thing here. The problem is the data range. For some reason, even when the data type is text, MS Excel still looks at it as a number. But if you hit enter, it looks at it as text. So I usually end up with the data range where some of it is numbers and others, text.

SOLUTION: Use IFERROR function to address BOTH possibilities: IFERROR(VLOOKUP(TEXT(A1,0),$A$1:$A$100,1,FALSE),VLOOKUP(VALUE(A1),$A$1:$A$100,1,FALSE)). Hope this helps.
This comment was minimized by the moderator on the site
This is what I do and is perfect.
This comment was minimized by the moderator on the site
Same thing here. The problem is the data range. For some reason, even when data type is text, it looks like it's still looked on as a number. But if you hit enter, it looks at it as text. So I usually would end up with the data range where some of it is numbers and others text.

SOLUTION: Use IFERROR function to address BOTH possibilities: IFERROR(VLOOKUP(TEXT(A1,0),$A$1:$A$100,1,FALSE),VLOOKUP(VALUE(A1),$A$1:$A$100,1,FALSE)). Hope this helps.
This comment was minimized by the moderator on the site
Hello Jaji, thanks, this works, I hope in all cases. Nevertheless it looks like a bug to me.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations