MCaliebe

asked on

# 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*"

Thanks,

MC

=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*"

Thanks,

MC

ASKER

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.

Can you look at my second question..I edited it most likely as you were answering.

ASKER CERTIFIED SOLUTION

membership

This solution is only available to members.

To access this solution, you must be a member of Experts Exchange.

To count all that begins with i* or p*

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

`=COUNTIF(J6:AM6,"i*")+COUNTIF(J6:AM6,"P*")`

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

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

ASKER

Great explanation.

Glad to help!

you can use

then you can put multiple criteria in between the {}.

**SUM(COUNTIF(J6:AM6,{"I*","**P*"})) entered with*[ctrl]+[shift]+[enter]*then you can put multiple criteria in between the {}.

=COUNTIF(J6:AM6,"I*")+COUN