Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using COUNTIF with LEFT() 2

Status
Not open for further replies.

MeGustaXL

Technical User
Aug 6, 2003
1,055
GB
Hiya,

I have several rows of data like this:

C9 C9 C9 9 9 C9 9 9 C9 3 9 9 9 9 9 9 9 9

I want to know how many cells begin with 'C' - I've tried =COUNTIF(LEFT(A1:A18,1)="C")), entered as an array formula, but that doesn't work.

What's the correct syntax for this?

Chris

Someday I'll know what I'm donig...damn!

 
Countif supports wildcards.

=COUNTIF(Range,"C*")

as a regular formula should do it.
 

Try this instead...
[tt]
=SUMPRODUCT(--(LEFT(A1:A18,1)="C"))
[/tt]


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Hey Thank you guys!

Both star-worthy answers ===>*

Mintjulep for being so blindingly obvious and simple [D'OH] and Skip for sending my mind down ever-increasing levels of functionality for this sheet, and answering my next question, before I even asked it! [wink]

Chris

Someday I'll know what I'm donig...damn!

 
I musta had Miss Voyant with me, as I often talk with Clair. ;-)

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top