Saltar al contenido principal

¿Cómo sumar celdas si contiene parte de la cadena de texto en las hojas de Goolge? 

Para sumar los valores de celda en una columna si las celdas de otra columna contienen una parte de una cadena de texto específica como se muestra en la siguiente captura de pantalla, este artículo presentará una fórmula útil para resolver esta tarea en las hojas de Google.

doc sumif contiene texto 1

Sumif celdas si contiene parte de una cadena de texto específica en las hojas de Google con fórmulas


Sumif celdas si contiene parte de una cadena de texto específica en las hojas de Google con fórmulas

Las siguientes fórmulas pueden ayudarlo a sumar valores de celda si las celdas de otra columna contienen una cadena de texto específica, haga lo siguiente:

1. Ingrese esta fórmula: =sum(filter(B2:B9, regexmatch(A2:A9, "KTE"))) en una celda en blanco y luego presione Participar clave para obtener el resultado, vea la captura de pantalla:

doc sumif contiene texto 2

Notas:

1. En la fórmula anterior: B2: B9 son los valores de celda que desea sumar, A2: A9 es el rango que contiene la cadena de texto específica, "KTE”Es el texto específico en el que desea sumar, cámbielos según sus necesidades.

2. Aquí hay otra fórmula que también puede ayudarlo: =sumif(A2:A9,"*KTE*",B2:B9).

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 (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hello, Thank for super post. I had was able to solve few issues with it. I still have one issue isuse- I am unable to sum up if there is a number in condition column say "=SUMIF(B9:B2414;"85*";E9:E2414)" where B can contains values like "ABC", "851", "865", "LUX",etc.
This comment was minimized by the moderator on the site
Hello !
Thank you for this tuto.

Is it possible to sum numbers included in cells if those cells also include a specific word ?

For example :
"car 2"
"house 1"
"dog 7"
"plate 3"
"screen 4"
"horse 2"
"battery 9"
"floor 1"
"river 2"
"plane 0"
"butterfly 7"
"horse 1"
"plate 0"
"house 12"

Formula to find total of house ?
Answer in this examle is 13

"house 1" is the content of one cell. I can't transfer the content in to different cells.
Thank you for your help.

https://i.postimg.cc/26LrtGNt/sumif.jpg
This comment was minimized by the moderator on the site
Thanks for this. I found both techniques shown work, EXCEPT that the filter and regex method returns an N/A error if there are not matches to the filter. So when I have a number of these formulas in a column and then sum the total, using that method causes the sum to return N/A and therefore the totals to break.  However using the sumif and *KTE* method returns a sum of 0 if there are no results, so the summing of totals still works. 
This comment was minimized by the moderator on the site
Hello jodamo5,I get your point. Indeed, the filter and regex method returns an #N/A error when there are no matches to filter. Therefore, I recommend the sumif method. Thanks for your notice. Your support means a lot to us. Have a great day.Sincerely,Mandy
This comment was minimized by the moderator on the site
Hey,
If I want to sum based on one of TWO specific text strains: Ex - "KTE" OR "ABC", would that be possible?
This comment was minimized by the moderator on the site
Hello, Adam,To sum the values based on more specifc text, any of the following formulas can do you a favor.=SUMIF(A2:A7, "*KTE*", B2:B7)+SUMIF(A2:A7, "*ABC*", B2:B7)
=sum(filter(B2:B7, regexmatch(A2:A7, "KTE")))+sum(filter(B2:B7, regexmatch(A2:A7, "ABC")))
please try, hope it can help you!
This comment was minimized by the moderator on the site
Hi,

the sum if formular is really useful. However, do you know how to make the text string dynamic (meaning referring to a cell)?

E.g. "*KTE*" replaced with something like C2 if the text string is in column C already.

=sumif(A2:A9,"*KTE*",B2:B9).
This comment was minimized by the moderator on the site
Hi, Sunith,
To replace the specific text with cell reference, please apply the below formula, change the cell C2 to your need.
=sumif(A2:A9,"*"&C2&"*",B2:B9)

Please try, thank you!
This comment was minimized by the moderator on the site
It works - thank you!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations