Here you go:
This formula returns the text-char count from cell E8
Notes:
There are quite a few "moving parts" in that formula, so I'll explain some of it.
Since we don't know what the length of the text in E8 will be, this section:
ROW($A$1:INDEX($A:$A,LEN(E8)
creates a range reference of vertical cells, beginning with A1 and continuing down for the number of characters that are in E8.
So if E8 contains A123B (5 characters), then the range will be A1:A5.
The ROW function returns the list of RowNumbers in the range:
{1,2,3,4,5}
The MID function plucks out each E8 character referenced by that array as if it were written this way:
MID(E8,1,1).......A
MID(E8,2,1).......1
MID(E8,3,1).......2
MID(E8,4,1).......3
MID(E8,5,1).......B
Each character is converted to upper-case and its ASCII code is tested to see if it in the range of values that represents A thru Z.
Hits =1, Misses = 0
SUMPRODUCT adds them up.
I hope that helps.
Bookmarks