Tell the difference between upper and lower case

  • Thread starter Thread starter RogerDaShrubber
  • Start date Start date
R

RogerDaShrubber

I have a column that has letters in it and I am using

=COUNTIF(D13:D27,"M") in one cell

and

=COUNTIF(D13:D27,"m") in another.

to keep track of what letters are put in the "D" column. But the
both count the upper AND lowercase letters. Is there any way to mak
excel tell the difference between upper and lowercase letters?

Thanks
Ro
 
RogerDaShrubber wrote...
...
=COUNTIF(D13:D27,"M") in one cell

and

=COUNTIF(D13:D27,"m") in another.

to keep track of what letters are put in the "D" column. But
they both count the upper AND lowercase letters. Is there any
way to make excel tell the difference between upper and
lowercase letters?

Yes, but not using COUNTIF. COUNTIF is always case-insensitive.

Try

=SUMPRODUCT(--EXACT(D13:D27,"M"))

and

=SUMPRODUCT(--EXACT(D13:D27,"m")
 
Rog, here is one way
=SUMPRODUCT((EXACT(C13:D27,"M")*1))
=SUMPRODUCT((EXACT(C13:D27,"m")*1))

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top