Filehost.ro - gazduire fisiere
Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Nou pe simpatie:
Laura_libero din Timis
Femeie
24 ani
Timis
cauta Barbat
32 - 50 ani
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides /

[EXCEL] Count the Number of Occurrences of a String in Cell/Range

Pagini: 1 Moderat de TRaP, TonyTzu
pus acum 4 luni#1
TRaP
Moderator
Postari: 962
key words: occurrence count appearances

I want to count how many times the "X" string appears in each cell in a range of cells.

You can simply use something like the formula below and drag down:

=LEN(A5)-LEN(SUBSTITUTE(A5;"X";""))

From the total number of characters in the cell - LEN(A5) - you subtract the total number of characters after removing the ones you want to count with SUBSTITUTE.

For a range, you can work with SPILL:

=LEN(A5:A100)-LEN(SUBSTITUTE(A5:A100;"X";""))


 
   
Pagini: 1  
Mergi la