ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   need help with SUMPRODUCT (https://www.excelbanter.com/excel-programming/416054-need-help-sumproduct.html)

Alexey[_3_]

need help with SUMPRODUCT
 
Hello,

I can use constants in SUMPRODUCT function, for example
SUMPRODUCT(...*(C100:C1000={"apples", "oranges'})*...), but I have troubles
when I am trying to use SUMPRODUCT with values from particular cells, for
example SUMPRODUCT(...*(C100:C1000={A1, A2})*...). Please help me with a
sysntacts I shoud use in my case. Thanks in advance!

Bernie Deitrick

need help with SUMPRODUCT
 
Alexey,

This will work:

=SUMPRODUCT(...*(NOT(ISERROR(MATCH(C100:C1000,A1:A 2,FALSE))))*....)

HTH,
Bernie
MS Excel MVP


"Alexey" wrote in message
...
Hello,

I can use constants in SUMPRODUCT function, for example
SUMPRODUCT(...*(C100:C1000={"apples", "oranges'})*...), but I have troubles
when I am trying to use SUMPRODUCT with values from particular cells, for
example SUMPRODUCT(...*(C100:C1000={A1, A2})*...). Please help me with a
sysntacts I shoud use in my case. Thanks in advance!




Alexey[_3_]

need help with SUMPRODUCT
 
Thanks Bernie, it works!

"Bernie Deitrick" wrote:

Alexey,

This will work:

=SUMPRODUCT(...*(NOT(ISERROR(MATCH(C100:C1000,A1:A 2,FALSE))))*....)

HTH,
Bernie
MS Excel MVP


"Alexey" wrote in message
...
Hello,

I can use constants in SUMPRODUCT function, for example
SUMPRODUCT(...*(C100:C1000={"apples", "oranges'})*...), but I have troubles
when I am trying to use SUMPRODUCT with values from particular cells, for
example SUMPRODUCT(...*(C100:C1000={A1, A2})*...). Please help me with a
sysntacts I shoud use in my case. Thanks in advance!






All times are GMT +1. The time now is 11:44 PM.

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