#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default sumproduct

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
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.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default sumproduct

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.

"T. Valko" wrote:

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.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default sumproduct

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:


--
Biff
Microsoft Excel MVP


"freebee" wrote in message
...
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.

"T. Valko" wrote:

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.






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default sumproduct

How about this array formula

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

--
__________________________________
HTH

Bob

"freebee" wrote in message
...
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.

"T. Valko" wrote:

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.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
IF / SUMPRODUCT HELP Grunt Excel Worksheet Functions 5 June 25th 07 11:55 AM
SUMPRODUCT Farhad Excel Discussion (Misc queries) 1 June 20th 07 10:20 PM
sumproduct bj Excel Discussion (Misc queries) 0 June 20th 07 10:18 PM
sumproduct Matt Excel Worksheet Functions 0 December 15th 05 12:24 AM


All times are GMT +1. The time now is 04:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"