In case you have a requirement to count the number of particular word is repeated in a cell then you must read this article. In this article, we will use combination of IF, LEN, TRIM & SUBSTITUTE functions to achieve the output.
Example: If the text is “Count the number of words in a cell” & we want to find out how many times character “t” is repeated or say any character, then we can simply use the combination of above functions in order to get the result.
Following is the snapshot of sample data:
In case the character is changed from “t” to “o” then we need to make slight adjustment in the formula i.e. replace “t” with “o”
If criterion is changed to character “e” then the formula will be
Note: if the criteria character is typed as “E” instead of “e” then the formula will show 0
Conclusion: Now we can get the count of specific characters with ease which are repeated in a cell.
If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.
Elegant solution! It works very well. Thank you.
Elegant solution! It works very well. Thank you.