+ Reply to Thread
Results 1 to 4 of 4

Sumproduct-multiple criteria for same range "OR"

  1. #1
    Deeds
    Guest

    Sumproduct-multiple criteria for same range "OR"

    I found a solution to my problem....

    However, to designate "or" between multiple conditions existing in a
    *single* range, you can create an array of these "or" conditions, using an
    array constant, as:
    =Sumproduct((Range1-{Condition1,Condition2,Condition3})*( ... )).

    The above solution works IF I type in the conditions which are text...so
    when I type in "Condition1" in quotes and "Condition2" in quotes it works as
    I want it as an OR statement. However, when I try to put a cell reference as
    the conditions where the cell reference is the actual text condition...it
    does not work. Can anyone help? Thanks in advance.


  2. #2
    Bob Phillips
    Guest

    Re: Sumproduct-multiple criteria for same range "OR"

    Something like

    =SUMPRODUCT((ISNUMBER(MATCH(Range1,E1:E2,0))*(Range2)))

    --
    HTH

    Bob Phillips

    (remove xxx from email address if mailing direct)

    "Deeds" <[email protected]> wrote in message
    news:[email protected]...
    > I found a solution to my problem....
    >
    > However, to designate "or" between multiple conditions existing in a
    > *single* range, you can create an array of these "or" conditions, using an
    > array constant, as:
    > =Sumproduct((Range1-{Condition1,Condition2,Condition3})*( ... )).
    >
    > The above solution works IF I type in the conditions which are text...so
    > when I type in "Condition1" in quotes and "Condition2" in quotes it works

    as
    > I want it as an OR statement. However, when I try to put a cell reference

    as
    > the conditions where the cell reference is the actual text condition...it
    > does not work. Can anyone help? Thanks in advance.
    >




  3. #3
    Deeds
    Guest

    Re: Sumproduct-multiple criteria for same range "OR"

    Works....thanks much!
    Followup: why do I use the "ISNUMBER" when the criteria is text?....
    thanks for your help.

    "Bob Phillips" wrote:

    > Something like
    >
    > =SUMPRODUCT((ISNUMBER(MATCH(Range1,E1:E2,0))*(Range2)))
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (remove xxx from email address if mailing direct)
    >
    > "Deeds" <[email protected]> wrote in message
    > news:[email protected]...
    > > I found a solution to my problem....
    > >
    > > However, to designate "or" between multiple conditions existing in a
    > > *single* range, you can create an array of these "or" conditions, using an
    > > array constant, as:
    > > =Sumproduct((Range1-{Condition1,Condition2,Condition3})*( ... )).
    > >
    > > The above solution works IF I type in the conditions which are text...so
    > > when I type in "Condition1" in quotes and "Condition2" in quotes it works

    > as
    > > I want it as an OR statement. However, when I try to put a cell reference

    > as
    > > the conditions where the cell reference is the actual text condition...it
    > > does not work. Can anyone help? Thanks in advance.
    > >

    >
    >
    >


  4. #4
    Bob Phillips
    Guest

    Re: Sumproduct-multiple criteria for same range "OR"

    The ISNUMBER does not refer to the value being tested, but the result of the
    MATCYH function. If the Match finds a MATCH, it returns a numeric index,
    else it returns an error. ISNUMBER measures that.

    --
    HTH

    Bob Phillips

    (remove xxx from email address if mailing direct)

    "Deeds" <[email protected]> wrote in message
    news:[email protected]...
    > Works....thanks much!
    > Followup: why do I use the "ISNUMBER" when the criteria is text?....
    > thanks for your help.
    >
    > "Bob Phillips" wrote:
    >
    > > Something like
    > >
    > > =SUMPRODUCT((ISNUMBER(MATCH(Range1,E1:E2,0))*(Range2)))
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (remove xxx from email address if mailing direct)
    > >
    > > "Deeds" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I found a solution to my problem....
    > > >
    > > > However, to designate "or" between multiple conditions existing in a
    > > > *single* range, you can create an array of these "or" conditions,

    using an
    > > > array constant, as:
    > > > =Sumproduct((Range1-{Condition1,Condition2,Condition3})*( ... )).
    > > >
    > > > The above solution works IF I type in the conditions which are

    text...so
    > > > when I type in "Condition1" in quotes and "Condition2" in quotes it

    works
    > > as
    > > > I want it as an OR statement. However, when I try to put a cell

    reference
    > > as
    > > > the conditions where the cell reference is the actual text

    condition...it
    > > > does not work. Can anyone help? Thanks in advance.
    > > >

    > >
    > >
    > >




+ 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