ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct 'Or' Condition (https://www.excelbanter.com/excel-worksheet-functions/170999-sumproduct-condition.html)

pdberger

Sumproduct 'Or' Condition
 
Good afternoon --

I have a sumproduct formula with four conditions. One of them needs to test
a range of cells for either a "N" or a blank. I can write it to test for one
or the other, but not either one. Here's my formula:

=SUMPRODUCT(--($A$2:$A$2000=$H28),--($F$2:$F$2000=I$3),$E$2:$E$2000,--($D$2:$D$2000=""))

It's the 'D' column -- I need it to test for either a blank cell or an 'N'.

Any help would be appreciated.

TIA

T. Valko

Sumproduct 'Or' Condition
 
Try this:

=SUMPRODUCT(--($A$2:$A$2000=$H28),($D$2:$D$2000="N")+($D$2:$D$20 00=""),--($F$2:$F$2000=I$3),$E$2:$E$2000)

--
Biff
Microsoft Excel MVP


"pdberger" wrote in message
...
Good afternoon --

I have a sumproduct formula with four conditions. One of them needs to
test
a range of cells for either a "N" or a blank. I can write it to test for
one
or the other, but not either one. Here's my formula:

=SUMPRODUCT(--($A$2:$A$2000=$H28),--($F$2:$F$2000=I$3),$E$2:$E$2000,--($D$2:$D$2000=""))

It's the 'D' column -- I need it to test for either a blank cell or an
'N'.

Any help would be appreciated.

TIA




Bob Phillips

Sumproduct 'Or' Condition
 
=SUMPRODUCT(--($A$2:$A$2000=$H28),--(SIGN(($D$2:$D$2000="")+($D$2:$D$2000="N"))),--($F$2:$F$2000=I$3),$E$2:$E$2000)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"pdberger" wrote in message
...
Good afternoon --

I have a sumproduct formula with four conditions. One of them needs to
test
a range of cells for either a "N" or a blank. I can write it to test for
one
or the other, but not either one. Here's my formula:

=SUMPRODUCT(--($A$2:$A$2000=$H28),--($F$2:$F$2000=I$3),$E$2:$E$2000,--($D$2:$D$2000=""))

It's the 'D' column -- I need it to test for either a blank cell or an
'N'.

Any help would be appreciated.

TIA





All times are GMT +1. The time now is 12:02 PM.

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