Excel : count with multiple text criteria -


i have below excel data :-

                  b             c 1  list       list b            result 2  no           critical            4 3  yes          critical     4  yes          critical     

in cell c2 have used =countif(b2:b4,"critical")+countif(a2:a4,"no") formula. returns result 4. because found 3 occurrences of text "critical" , single occurrence of text "no". hence result 4.

what want : should give result 1. mean if row has text "no" , row b has text "critical" count result, should not count other combination. using above formula count irrespective looking combination. there formula other countif perform operation above?

try 1 excel 2007 , later:

=countifs(a2:a4,"no", b2:b4,"critical") 

for excel 2003 can use:

=sumproduct((a2:a4="no")*(b2:b4="critical")) 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -