Character count in Numbers cells

I need to know the number of letters/characters inside a cell that contains a text string.

What formula can I use to do that?

Thanks a lot!

MacBook Pro Apple Silicon

Posted on Nov 16, 2022 5:54 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 17, 2022 5:51 AM

Another way to do it that would also count characters other than a-z,A-Z, and 0-9 would be to to subtract the number of "white space" characters from the total number of characters. That would take into account non-english letters (including those with tildes and umlauts), hyphens, symbols, etc. I wasn't thinking about those characters yesterday.


=LEN(B2)−COUNTMATCHES(B2,REGEX("\s"))


5 replies
Question marked as Top-ranking reply

Nov 17, 2022 5:51 AM in response to Taiwanese Foreign Student

Another way to do it that would also count characters other than a-z,A-Z, and 0-9 would be to to subtract the number of "white space" characters from the total number of characters. That would take into account non-english letters (including those with tildes and umlauts), hyphens, symbols, etc. I wasn't thinking about those characters yesterday.


=LEN(B2)−COUNTMATCHES(B2,REGEX("\s"))


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Character count in Numbers cells

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.