View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default SumProduct + CountIf

Remove the last part

=SUMPRODUCT(--($M$154:$M$1590),--($L$154:$L$159=N154))


--
Regards,

Peo Sjoblom



"Sarah" wrote in message
...
Hi there,

I'm using a sumproduct formula to add data from 1 column, based on 2
conditional colums. So my formula looks like this:

=SUMPRODUCT(--($M$154:$M$1590),--($L$154:$L$159=N154),$M$154:$M$159)

I actually want to count the numbers in column M, not add them. How do I
build the countif functionality into the sumproduct?

Thanks!