View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Leo Heuser Leo Heuser is offline
external usenet poster
 
Posts: 266
Default excel: count uppercase letters in a cell

"harry bachrach" <harry skrev i en
meddelelse ...
excel: how to count uppercase letters in a cell


Contrary to the other suggestions, here's one that works for
all characters not only the characters of the English alphabet <bg

=SUMPRODUCT((CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1) )),1))=
CODE(UPPER((MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)) )))+0)

--
Best regards
Leo Heuser

Followup to newsgroup only please.