#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default SUMPRODUCT and OR

I need to test for either of two conditions in the same array. The
following SUMPRODUCT formula returns errors: =SUMPRODUCT((--OR(A$1:A
$248="7DCNA008"),--(A$1:A$248="7DCNA008A")),--(J$1:J$248="PO Not in
FAS"))

Essentially, I want to test for 7DCNA008 or 7DCNA008A in the range
A1:A248. How do I do this?

Dave
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT and OR

=SUMPRODUCT(--((A$1:A$248="7DCNA008")+(A$1:A$248="7DCNA008A")),--(J$1:J$248="PO
Not in G4 FAS"))

--
---
HTH

Bob


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



"Dave F" wrote in message
...
I need to test for either of two conditions in the same array. The
following SUMPRODUCT formula returns errors: =SUMPRODUCT((--OR(A$1:A
$248="7DCNA008"),--(A$1:A$248="7DCNA008A")),--(J$1:J$248="PO Not in
FAS"))

Essentially, I want to test for 7DCNA008 or 7DCNA008A in the range
A1:A248. How do I do this?

Dave



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default SUMPRODUCT and OR

Hi,

Give a try to following :

=SUMPRODUCT(--OR((A$1:A$248="7DCNA008"),--(A$1:A$248="7DCNA008A"))*--(J
$1:J$248="PO Not in FAS"))

HTH
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT and OR

That doesn't work! The OR resolves to a single TRUE if any of A1:A248 holds
that string which effectively counts how many of J1:J248 equal its string if
ANY of A1:A248 equals its, no consideration of matching the pairs.

You might be thinking of something like

=SUMPRODUCT((A$1:A$248={"7DCNA008","7DCNA008A"})*( J$1:J$248="PO Not in G4
FAS"))



--
---
HTH

Bob


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



"Carim" wrote in message
...
Hi,

Give a try to following :

=SUMPRODUCT(--OR((A$1:A$248="7DCNA008"),--(A$1:A$248="7DCNA008A"))*--(J
$1:J$248="PO Not in FAS"))

HTH



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default SUMPRODUCT and OR

Thanks, this helps.

On Dec 12, 8:50 am, "Bob Phillips" wrote:
=SUMPRODUCT(--((A$1:A$248="7DCNA008")+(A$1:A$248="7DCNA008A")),--(J$1:J$248-="PO
Not in G4 FAS"))

--
---
HTH

Bob

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

"Dave F" wrote in message

...



I need to test for either of two conditions in the same array. The
following SUMPRODUCT formula returns errors: =SUMPRODUCT((--OR(A$1:A
$248="7DCNA008"),--(A$1:A$248="7DCNA008A")),--(J$1:J$248="PO Not in
FAS"))


Essentially, I want to test for 7DCNA008 or 7DCNA008A in the range
A1:A248. How do I do this?


Dave- Hide quoted text -


- Show quoted text -


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
SUMPRODUCT help TiaB Excel Worksheet Functions 1 September 27th 06 02:54 AM
SUMPRODUCT Help please SamGB Excel Discussion (Misc queries) 11 February 24th 06 11:21 PM
SUMPRODUCT help again! TMF in MN Excel Worksheet Functions 4 February 22nd 06 08:01 PM
Sumproduct Help Rob Excel Worksheet Functions 11 August 8th 05 10:00 PM


All times are GMT +1. The time now is 01:50 AM.

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"