Countif - text begins with the letter __

Sppinner

New Member
Joined
May 6, 2013
Messages
20
Hi there,

I am using a countif formula to answer the question: How many Entries begin with the letter "i"?

The formula I am using is =countif(left(C2:C101,1),"I") but I am getting an error return

Do you know what I am doing wrong? How else could I find out how many of the entries begin with the letter "I"?

Thanks!

Spinner
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
You can't apply a function to the range in countif..

Try using a wildcard

=COUNTIF(C2:C101,"I*")
 
Upvote 0
Ok thanks! I didn't know about wildcards.

Could I use * to find entries that are only one word entries?

As an example it would return "Fries" --> One word
but would not return "Fries and Gravy" --> Three words

Sppinner
 
Upvote 0
In that case, you would NOT use the wildcard, and just use "Fries"

=COUNTIF(C2:C101,"Fries")
 
Upvote 0
I am trying to apply it to a long range of entries so I would need it to be able to answer the question: How many entries are made up of only one word?

I'm thinking of something like =countif(c2:c101, and("?*?",not("?*? ?*?")))

Spinner
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,533
Members
448,969
Latest member
mirek8991

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top