Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 258
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default 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



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-condition as a range amh Excel Discussion (Misc queries) 3 July 26th 07 05:36 PM
SUMPRODUCT with an IF condition? FARAZ QURESHI Excel Discussion (Misc queries) 4 May 5th 07 05:31 AM
sumproduct and colored cell as a condition to be met George P Excel Worksheet Functions 2 January 9th 07 05:18 PM
Sumproduct: condition with ? Sarah Excel Discussion (Misc queries) 3 November 1st 06 06:33 PM
Sumproduct with condition??? neda5 Excel Discussion (Misc queries) 5 December 14th 05 02:09 AM


All times are GMT +1. The time now is 08:55 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"