+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT + multi conditions

  1. #1
    Registered User
    Join Date
    05-04-2005
    Location
    Papamoa, New Zealand
    MS-Off Ver
    Office 365
    Posts
    56

    SUMPRODUCT + multi conditions

    Hi,

    My current formula works okay but I wish to add more complexity to it.
    =SUMPRODUCT(--(Others!$A$2:$A$2000=$A2),--(Others!$B$2:$B$2000="U"),--(Others!$I$2:$I$2000=1),--(Others!$X$2:$X$2000))

    where $A2 is the name of a product ( 1st array )
    and Range Others!$B$2:$B$2000 contains data Q, A, AS, U, MAS

    What I am wanting to do is extend the 2nd array to include any of the following ( U, AS & MAS ). How do I do this ?

    Cheers,
    Bernz

  2. #2
    Biff
    Guest

    Re: SUMPRODUCT + multi conditions

    Hi!

    Try this:

    =SUMPRODUCT(--(Others!$A$2:$A$2000=$A2),--(ISNUMBER(MATCH(Others!$B$2:$B$2000,{"U","AS","MAS"},0))),--(Others!$I$2:$I$2000=1),Others!$X$2:$X$2000)

    Biff

    "BernzG" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > My current formula works okay but I wish to add more complexity to it.
    > =SUMPRODUCT(--(Others!$A$2:$A$2000=$A2),--(Others!$B$2:$B$2000="U"),--(Others!$I$2:$I$2000=1),--(Others!$X$2:$X$2000))
    >
    > where $A2 is the name of a product ( 1st array )
    > and Range Others!$B$2:$B$2000 contains data Q, A, AS, U, MAS
    >
    > What I am wanting to do is extend the 2nd array to include any of the
    > following ( U, AS & MAS ). How do I do this ?
    >
    > Cheers,
    > Bernz
    >
    >
    > --
    > BernzG
    > ------------------------------------------------------------------------
    > BernzG's Profile:
    > http://www.excelforum.com/member.php...o&userid=22949
    > View this thread: http://www.excelforum.com/showthread...hreadid=540123
    >




  3. #3
    Registered User
    Join Date
    05-04-2005
    Location
    Papamoa, New Zealand
    MS-Off Ver
    Office 365
    Posts
    56

    SUM PRODUCT + multi conditions

    Hi Biff,

    Thanks - that has worked perfectly

  4. #4
    Biff
    Guest

    Re: SUMPRODUCT + multi conditions

    You're welcome. Thanks for the feedback!

    Biff

    "BernzG" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi Biff,
    >
    > Thanks - that has worked perfectly
    >
    >
    > --
    > BernzG
    > ------------------------------------------------------------------------
    > BernzG's Profile:
    > http://www.excelforum.com/member.php...o&userid=22949
    > View this thread: http://www.excelforum.com/showthread...hreadid=540123
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1