View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Count Rows when certain conditions are met

=SUMPRODUCT(--(K2:K32="x"),--(N2:N32="x"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"dmc0409" wrote in message
...
I am trying to calculate the total number of rows in a table where certain
conditions are met. For example, to put in plain English:

count row 8 if k8=X and n8 = x
count row 9 if k9=x and n8=x
count row 10 if k10= x and n10=x
and so forth....to row 32

Total number of rows where this is true________

Thanks.
DMC