Thread: sumproduct
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default sumproduct

As long as L15:L252 and N15:N252 contain numbers only.

=SUMPRODUCT(--(M15:M252=J158),L15:L252+N15:N252)

--
Biff
Microsoft Excel MVP


"freebee" wrote in message
...
Hi, I have a formula looks like
this:=SUMPRODUCT(--(M15:M252=J158),(L15:L252))+SUMPRODUCT(--(M15:M252=J158),(N15:N252))
How do I simplify to sum L15:L252 and N15:N252
Thanks.