Ga naar hoofdinhoud

Hoe cellen optellen als ze een deel van de tekstreeks bevatten in Goolge-bladen? 

Om celwaarden in een kolom op te tellen als een andere kolomcel een deel van een specifieke tekstreeks bevat, zoals in de volgende schermafbeelding, introduceert dit artikel een nuttige formule om deze taak in Google-bladen op te lossen.

doc sumif bevat tekst 1

Sumif-cellen bevatten een deel van een specifieke tekstreeks in Google-bladen met formules


Sumif-cellen bevatten een deel van een specifieke tekstreeks in Google-bladen met formules

De volgende formules kunnen u helpen bij het optellen van celwaarden als een andere kolomcel een specifieke tekstreeks bevat, doe dit als volgt:

1. Voer deze formule in: =sum(filter(B2:B9, regexmatch(A2:A9, "KTE"))) in een lege cel en druk vervolgens op Enter sleutel om het resultaat te krijgen, zie screenshot:

doc sumif bevat tekst 2

Opmerkingen:

1. In de bovenstaande formule: B2: B9 zijn de celwaarden die u wilt optellen, A2: A9 is het bereik dat de specifieke tekstreeks bevat, "KTE”Is de specifieke tekst waarop u wilt optellen, wijzig deze dan naar wens.

2. Hier is een andere formule die u ook kan helpen: =sumif(A2:A9,"*KTE*",B2:B9).

Beste Office-productiviteitstools

🤖 Kutools AI-assistent: Een revolutie teweegbrengen in de data-analyse op basis van: Intelligente uitvoering   |  Genereer code  |  Aangepaste formules maken  |  Analyseer gegevens en genereer grafieken  |  Roep Kutools-functies aan...
Populaire functies: Zoek, markeer of identificeer duplicaten   |  Verwijder lege rijen   |  Combineer kolommen of cellen zonder gegevens te verliezen   |   Ronde zonder formule ...
Super opzoeken: Meerdere criteria VLookup    VLookup met meerdere waarden  |   VOpzoeken over meerdere bladen   |   Fuzzy opzoeken ....
Geavanceerde vervolgkeuzelijst: Maak snel een vervolgkeuzelijst   |  Afhankelijke vervolgkeuzelijst   |  Multi-select vervolgkeuzelijst ....
Kolom Beheerder: Voeg een specifiek aantal kolommen toe  |  Kolommen verplaatsen  |  Schakel de zichtbaarheidsstatus van verborgen kolommen in  |  Vergelijk bereiken en kolommen ...
Uitgelichte functies: Raster focus   |  Ontwerpweergave   |   Grote formulebalk    Werkmap- en bladbeheer   |  resource Library (Auto-tekst)   |  Datumkiezer   |  Combineer werkbladen   |  Cellen coderen/decoderen    Stuur e-mails per lijst   |  Super filter   |   Speciaal filter (filter vet/cursief/doorhalen...) ...
Top 15 gereedschapsets12 Tekst Tools (toe te voegen tekst, Tekens verwijderen, ...)   |   50+ tabel Types (Gantt Chart, ...)   |   40+ Praktisch Formules (Bereken leeftijd op basis van verjaardag, ...)   |   19 Invoeging Tools (QR-code invoegen, Afbeelding invoegen vanaf pad, ...)   |   12 Camper ombouw Tools (Getallen naar woorden, Currency Conversion, ...)   |   7 Samenvoegen en splitsen Tools (Geavanceerd Combineer rijen, Gespleten cellen, ...)   |   ... en meer

Geef uw Excel-vaardigheden een boost met Kutools voor Excel en ervaar efficiëntie als nooit tevoren. Kutools voor Excel biedt meer dan 300 geavanceerde functies om de productiviteit te verhogen en tijd te besparen.  Klik hier om de functie te krijgen die u het meest nodig heeft...

Omschrijving


Office-tabblad Brengt een interface met tabbladen naar Office en maakt uw werk veel gemakkelijker

  • Schakel bewerken en lezen met tabbladen in Word, Excel, PowerPoint in, Publisher, Access, Visio en Project.
  • Open en maak meerdere documenten in nieuwe tabbladen van hetzelfde venster in plaats van in nieuwe vensters.
  • Verhoogt uw productiviteit met 50% en vermindert honderden muisklikken voor u elke dag!
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