COUNTIFS Function not adding multiple results

I am trying to use the COUNTIFS to state multiple criteria within a range to count.  Can someone look at the attached example and tell me what might be wrong with my formula>  I assume that

=COUNTIFS(J6:AM6,"I*", J6:AM6,"P*")
is going to count all cells in a range begining with I or P.

Additionally, can the Count functions be used to determine what does not meet a criteria such as... count everything in range J6:AM6 except "I*" and "P*"


Who is Participating?
etech0Connect With a Mentor Commented:
For this one, you'd probably need to use countifs.

Try this:

=COUNTIFS(J6:AM6,"<>I*", J6:AM6,"<>P*")

What it's doing is counting all the records where it doesn't start with I and it doesn't start with P. The rule is that Countifs uses AND, so if you want OR, you need to add (like above).
Countifs will count all records that fulfill BOTH conditions. To achieve what you need, try this:

MCaliebeAuthor Commented:
Thank you.  The help file is missing that statement.

Can you look at my second question..I edited it most likely as you were answering.
Never miss a deadline with

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

To count all that begins with i* or p*

Open in new window

To count all that does not begin with i* or p*

Open in new window

MCaliebeAuthor Commented:
Great explanation.
Glad to help!
you can use SUM(COUNTIF(J6:AM6,{"I*","P*"})) entered with [ctrl]+[shift]+[enter]

then you can put multiple criteria in between the {}.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.