Need the correct formula

R

Rob K

I am trying to count all the cells in a table that have a Category (first
column)of 'data' and a Priority (second column) of 'medium'. I can get a
count of all the cells with a value of 'medium' by using the 'CountIf'
function. But I can't seem to further restrict the count to just 'data' and
'medium'. I've tried the If-And function without sucess.

Thanks in advance
 
L

loudfish

But I can't seem to further restrict the count to just 'data' and
'medium'. I've tried the If-And function without sucess.

Thanks in advance

Col A.........ColB
Category....Priority

Add ColC
=A1&B1

This will concatenate the two values together. Copy this formula down.

Now you can COUNTIF... using 'datamedium'

HTH

Andrew
 
J

JMB

=Sumproduct(--(Category="Data"),--(Priority="Medium))

where Category and Priority are the range references for your two columns.
 
Top