Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
elite
 
Posts: n/a
Default Count number of cells that contain a certain letter - Case Sensitive


I have an worksheet that counts the number of cells containing a certain
letter:

E.g.
Code:
--------------------
=(COUNTIF($B$4:$AO$25,"a"))
--------------------


I would like to make this case sensitive so I can return the number of
lowercase 'a' and the number of uppercase 'A'

Thanks for any help


--
elite
------------------------------------------------------------------------
elite's Profile: http://www.excelforum.com/member.php...o&userid=27394
View this thread: http://www.excelforum.com/showthread...hreadid=469123

  #2   Report Post  
Stefi
 
Posts: n/a
Default


=COUNTIF($B$4:$AO$25,CHAR(97)) for "a"
=COUNTIF($B$4:$AO$25,CHAR(65)) for "A"

Regards,
Stefi

€želite€ť ezt Ă*rta:


I have an worksheet that counts the number of cells containing a certain
letter:

E.g.
Code:
--------------------
=(COUNTIF($B$4:$AO$25,"a"))
--------------------


I would like to make this case sensitive so I can return the number of
lowercase 'a' and the number of uppercase 'A'

Thanks for any help


--
elite
------------------------------------------------------------------------
elite's Profile: http://www.excelforum.com/member.php...o&userid=27394
View this thread: http://www.excelforum.com/showthread...hreadid=469123


  #3   Report Post  
Jim May
 
Posts: n/a
Default

try:
=SUMPRODUCT(EXACT(B2:B15,D2)+0)

where D2 contains your a or A

HTH




"elite" wrote in
message ...

I have an worksheet that counts the number of cells containing a certain
letter:

E.g.
Code:
--------------------
=(COUNTIF($B$4:$AO$25,"a"))
--------------------


I would like to make this case sensitive so I can return the number of
lowercase 'a' and the number of uppercase 'A'

Thanks for any help


--
elite
------------------------------------------------------------------------
elite's Profile:
http://www.excelforum.com/member.php...o&userid=27394
View this thread: http://www.excelforum.com/showthread...hreadid=469123



  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 20 Sep 2005 05:53:54 -0500, elite
wrote:


I have an worksheet that counts the number of cells containing a certain
letter:

E.g.
Code:
--------------------
=(COUNTIF($B$4:$AO$25,"a"))
--------------------


I would like to make this case sensitive so I can return the number of
lowercase 'a' and the number of uppercase 'A'

Thanks for any help



The FIND worksheet function is case sensitive, and will return a number if the
string in question is found (otherwise it returns a VALUE error).

So:

=SUMPRODUCT(--ISNUMBER(FIND("A",rng)))
=SUMPRODUCT(--ISNUMBER(FIND("a",rng)))

should give you your count. The only caveat is that you cannot refer to an
entire column in your cell reference.


--ron
  #5   Report Post  
elite
 
Posts: n/a
Default


Thanks guys


--
elite
------------------------------------------------------------------------
elite's Profile: http://www.excelforum.com/member.php...o&userid=27394
View this thread: http://www.excelforum.com/showthread...hreadid=469123

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I count number of cells with info?? HJK Excel Discussion (Misc queries) 3 September 20th 05 07:11 AM
Counting the number of cells meeting conditional formating criteria Jeff Excel Worksheet Functions 4 July 9th 05 01:18 AM
Count number of times a specific number is displayed in a cell ran subs Excel Worksheet Functions 1 June 27th 05 05:01 PM
COUNT NON-BLANK CELLS WITH REFERENCE TO ANOTHER COLUMN carricka Excel Worksheet Functions 1 May 6th 05 04:50 PM
Count number to reach a cumulative value Bruce Excel Worksheet Functions 5 January 25th 05 05:14 PM


All times are GMT +1. The time now is 06:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"