Share via

count characters in a cell - Excel

Anonymous
2022-12-27T15:43:50+00:00

If I have Hebrew characters in a cell , the count of characters will be correct. If the word contains Hebrew vowels count will include those in the count.

for ex. the word מזמור will give me a count of 5. That is correct.

The word

מִזְמוֹר<br><br>will give me a count of 8, incudes the vowels.<br><br>Q. How do I count such characters without the vowels
Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-12-27T17:23:48+00:00

    Hi. I am Leonielhou.

    To count the number of characters in a cell without including the vowels in Hebrew, you can use the LEN function in Excel or Google Sheets. The LEN function counts the number of characters in a cell, but it does not count formatting such as bold or italic, or spaces.

    To use the LEN function, enter the formula "=LEN(cell)" in the cell where you want the character count to appear, replacing "cell" with the cell reference or cell content that you want to count. For example, if the cell with the Hebrew text you want to count is A1, you can use the formula "=LEN(A1)" to count the number of characters in that cell.

    If you want to exclude the vowels from the character count, you can use the SUBSTITUTE function to replace the vowels with an empty string before using the LEN function. For example, you can use the formula "=LEN(SUBSTITUTE(A1,"א",""))" to count the number of characters in cell A1, excluding the vowel "א". You can use this same formula with different vowels to exclude other Hebrew vowels as well.

    Keep in mind that the LEN function counts each character as a single character, regardless of whether it is a vowel or consonant. So if you use the SUBSTITUTE function to remove the vowels from the text before counting the characters, the resulting character count will be lower than the actual number of characters in the cell.

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2022-12-27T17:32:27+00:00

    I learn from here what the unicodes are for vowels: "A quick look at Hebrew Unicode chart shows that the vowels are all located between 0x0591 (1425) and 0x05C7 (1479)."

    I use that in a formula to strip out those characters and count the number of remaining characters.

    Image

    =LET(b,B2,a,UNICODE(MID(b,SEQUENCE(LEN(b)),1)),ROWS(FILTER(a,NOT(ISNUMBER(MATCH(a,SEQUENCE(55,,1425),0))))))

    I strongly suspect this is not the whole story.

    This formula can be shortened by converting it to a lambda formula which could result in a formula like:

    =HebrewLen(B2)

    0 comments No comments