Right function to use

S

SHelley

State Ins
1 ny prc
2 ny crc
3 ny crc
4 ct prc
5 ct prc
6 ct crc
7 oh prc
8 oh prc

STATE PRC CRC
NY XXXX XXXX
CT
OH

I want to put a function where the XXX's are that will count the number of
occurances of PRC or CRC based on a particular state code, using the rows
above. I have tried COUNTIF but I can not get the arguments correct??
 
B

Bob Phillips

=SUMPRODUCT(--($A$2:$A$6=$A11),--($B$2:$B$8=B$10))

adjust the ranges to suit
 
S

SHelley

Bob, Thanks, this worked great. One more, what if I needed to have another
argument for the same array: like if the first range is NY or OH, and the
second range is prc?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top