View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default COUNT function... I think!

=SUMPRODUCT(--(A2:A7="Car"),--(B2:B7=2))
If the priority is text, rather than a number, then you'd need quotes, so
=SUMPRODUCT(--(A2:A7="Car"),--(B2:B7="2"))
--
David Biddulph

"Rebekah" wrote in message
...
I have two colomns of data, I need to operate the count function only if
the
data in both colomns, within the same row are true i.e

I need to count the how many times the trade "car" happens to be a
priority
"2".

Trade Priority
CAR 2
BRI 2
ROO 2a
ELE 2a
PLU 3
CAR 2

I have tried to use =COUNTIF, =COUNT(IF

Is this possible and what is the correct formula/function to use?