• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

count the occurence of a character in a cell

GN0001

Member
Hello,

Does anybody know how to count the occurrence of a specific character in a cell?

I have a cell contains: 123, 2224,555

I need to put a function that counts the number of "," in a cell?

Regards,

GN
 
Hi, GGGGG!

Try this:

=LARGO(A1)-LARGO(SUSTITUIR(A1;",";""))

in english: =LEN(A1)-LEN(SUBSTITUTE(A1,",",""))

Regards!
 
Hello, Thank you for the response.

Do we have a built in function in Excel for this purpose?

Regards,

GGGGG
 
Hi, GGGGG!

Glad you solved it. Thanks for your feedback and welcome back whenever needed or wanted.

Regards!
 
Back
Top