×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Horizontal Array Conditional Sum Product

Horizontal Array Conditional Sum Product

Horizontal Array Conditional Sum Product

(OP)
I am having trouble with the following formula.  I am trying to add a series of numbers based on the following criteria:
Row 7 must be a blank number
Row 6 must contain certain "triggers"
if these two conditions are met then sum the related cells in Row 9.  

=SUMPRODUCT(ISBLANK(J7:Z7)*(J9:Z9)*OR(J6:Z6={"Text1";"Text2";"Text3";"Text4"}))

I have used something similar before, but only in vertical arrays.  The first test seems to be fine, the error is happening somehow in the 2nd test.  I can make the test array work fine by itself, but I can't seem to make it work as part of the formula.  In the sumproduct formula the second condition seems to be always "True" regardless of what is in Row 6.  I would love to redo the spreadsheet, but since I'm trying to help someone out, I doubt that is a possibility.  Basically, someone has invented an elaborate spreadsheet and now needs a method of managing it.

Thanks

RE: Horizontal Array Conditional Sum Product

Found works as follows if remove OR and add brackets:
=SUMPRODUCT(ISBLANK(J7:z7)*(J8:z8)*((J9:z9)={"text1";"text2";"text3";"text4"}))

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources