can anyone help me with a tip on how to count the number
of uppercase letters in a range.
and counting lowecase as well?
thx
Miro
If you mean the number of cells that contain all upper or lower
case, use
=SUMPRODUCT(EXACT(A1:A5,UPPER(A1:A5))*1)
and
=SUMPRODUCT(EXACT(A1:A5,LOWER(A1:A5))*1)
for upper and lower case, respectively.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com ch...@cpearson.com
"Miro" <marwanm...@wanadoo.fr> wrote in message
news:035c01c30cbb$31c30d30$a601...@phx.gbl...
=SUM(LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(ROW(INDIRECT("65:90"))),"")))
hit ctrl-shift-enter instead of just enter. This is an array formula and if you
do it correctly, excel will wrap curly brackets {} around the formula.
Or non-array entered:
=SUMPRODUCT(LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(ROW(INDIRECT("65:90"))),"")))
--
Dave Peterson
ec3...@msn.com
I used a formula like: =code("A") to get the numbers.
--
Dave Peterson
ec3...@msn.com
Miro
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Despite some ambiguity the nice thing about newsgroups is
that Chip's answer might help someone else.
Your feedback is especially appreciated, because there were
multiple interpretations and/or multiple solutions.
David McRitchie,
"Marwan MOUBARAK" <marwanm...@wanadoo.fr> wrote ...
this seems to work:
=SUM(LEN(A1:A10)
-LEN(SUBSTITUTE(A1:A10,TRANSPOSE(CHAR(ROW(INDIRECT("65:90")))),"")))
(all one cell, still array entered)
--
Dave Peterson
ec3...@msn.com
"Dave Peterson" <ec3...@msn.com> wrote ...