Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 09-30-2008, 01:36 PM   #1
Member (7 bit)
 
Join Date: Aug 2005
Posts: 119
excel countif

Hello all

Assume i have the following excel sheet


cell value
A1 a
A2 a
A3 a
A4 A
A5 A

I want to insert a funtion in A6 which will count how many cells have a capital A .
If i use COUNTIF(A1:A5,="A") the result will be 5 .It also counts thw minuscule a's . How can i fix this ?

Thanks a lot
johngav is offline   Reply With Quote
Old 09-30-2008, 06:41 PM   #2
Member (9 bit)
 
Join Date: May 2007
Location: USA, New Jersey
Posts: 447
Quote:
Originally Posted by johngav View Post
Hello all

Assume i have the following excel sheet


cell value
A1 a
A2 a
A3 a
A4 A
A5 A

I want to insert a funtion in A6 which will count how many cells have a capital A .
The only way I can find to get it to count as you desrie is to add the following
formulas to all the 5 cells in column B...

=code(A1)
=code(A2)
=code(A3)
=code(A4)
=code(A5)

The above formula will produce... 97 for "a" or 65 for "A"

Then in cell A6 enter formula...

=COUNTIF(B1:B5,"65")


You may optionally hide the entire Column B to keep things looking clean.


---pete---
Petef56 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:00 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2