ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct Q (https://www.excelbanter.com/excel-worksheet-functions/8360-sumproduct-q.html)

John

Sumproduct Q
 
I am trying to add up values in Col N14:N20 if the values in Col D14:D20 is
equal to what is selected from a Drop down menu in D14. I've set the formula
as =SUMPRODUCT((D14:D20=D14),(N14:N20)) but its not giving me the expected
answer

Thanks



Bob Phillips

John,

How about

=SUMPRODUCT(--(D14:D20=D14),N14:N20)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"John" wrote in message
...
I am trying to add up values in Col N14:N20 if the values in Col D14:D20

is
equal to what is selected from a Drop down menu in D14. I've set the

formula
as =SUMPRODUCT((D14:D20=D14),(N14:N20)) but its not giving me the expected
answer

Thanks





Dave Peterson

You may want to look at =sumif(), too.



John wrote:

I am trying to add up values in Col N14:N20 if the values in Col D14:D20 is
equal to what is selected from a Drop down menu in D14. I've set the formula
as =SUMPRODUCT((D14:D20=D14),(N14:N20)) but its not giving me the expected
answer

Thanks


--

Dave Peterson

Aladin Akyurek

Invoke a SumIf formula for the calculation you need depends on just one
condition:

=SUMIF(D14:D20,D14,N14:N20)

"John" wrote in message
...
I am trying to add up values in Col N14:N20 if the values in Col D14:D20 is
equal to what is selected from a Drop down menu in D14. I've set the
formula
as =SUMPRODUCT((D14:D20=D14),(N14:N20)) but its not giving me the expected
answer

Thanks






All times are GMT +1. The time now is 09:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com