sumproduct

  • Thread starter Thread starter freebee
  • Start date Start date
F

freebee

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.
 
As long as L15:L252 and N15:N252 contain numbers only.

=SUMPRODUCT(--(M15:M252=J158),L15:L252+N15:N252)
 
Hi, thanks. My previous formula followed by:
-SUMPRODUCT(--(G15:G252="return"),--(E15:E252=J166),--(k15:k252="vender
Aâ€),D15:D252+n15:n252) It did not work. I want a simplified formula to do
if first 2 -- met, sum D15:D252, if last -- met, sum n15:n252.
Thanks.
 
I want a simplified formula to do if first 2 -- met,
sum D15:D252, if last -- met, sum n15:n252.

Sorry, I don't understand what you mean. My best guess is that those are 2
separate conditions and you need to do it the way you originally had it:
 
How about this array formula

=SUM(IF((G15:G252="return")*(E15:E252=J166),D15:D252,IF((E15:E252=J166)*(K15:K252="vender
A"),N15:N252)))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top