[mso] Count Non-Blank Cells in Excel 2002

  • From: Ray Shapp <ras45@xxxxxxxxxxxxx>
  • To: mso@xxxxxxxxxxxxx
  • Date: Sat, 07 Jul 2007 12:48:19 -0400

Hi All,

In Excel 2002, I want to count the number of cells in a column that are 
non-blank AND contain a particular literal string among the characters in the 
cell. As an example, I want to count all non-blank cells that contain "abc" in 
their contents. In the sample column below, the value I seek would be 2:

A1 "bca"
A2 "cats are gray"
A3 "dogs are brown"
A4
A5 "bats fly"
A6 "this is as simple as abc"
A7 "a   bc"
A8 "zebras"
A9 "12 45 abc 67"

Only cells A6 and A9 meet the criterion.

I tried =COUNTIF(A1:A9, "abc")  but that returned zero because no cell 
contains just "abc".

Is there a way to substitute a string function in place of the literal, "abc"?

Thanks for the help.

Ray Shapp


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group. 
 This group will not allow for posting of emails, but will allow you to join 
and share problem files, templates, etc.:  
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE 
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: