+ Reply to Thread
Results 1 to 13 of 13

Conditional Sum Product

  1. #1
    Ben010
    Guest

    Conditional Sum Product

    I want to get the sumproduct of two rows of numbers based on an IF condition
    in a related row. The formula would look like this:
    =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise Multiplier =1
    So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes" then the
    product would be b2*b3*1. Any ideas?

  2. #2
    Bob Phillips
    Guest

    Re: Conditional Sum Product

    =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    "Ben010" <[email protected]> wrote in message
    news:[email protected]...
    > I want to get the sumproduct of two rows of numbers based on an IF

    condition
    > in a related row. The formula would look like this:
    > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise Multiplier

    =1
    > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes" then the
    > product would be b2*b3*1. Any ideas?




  3. #3

    Re: Conditional Sum Product

    Bob,

    I was reading thru some of the posts and saw your response...I have a
    question. I use sumproduct alot, but I do not/have not used the (--
    What does this do exactly?

    Thanks,

    Hans

    Bob Phillips wrote:
    > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Ben010" <[email protected]> wrote in message
    > news:[email protected]...
    > > I want to get the sumproduct of two rows of numbers based on an IF

    > condition
    > > in a related row. The formula would look like this:
    > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise Multiplier

    > =1
    > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes" then the
    > > product would be b2*b3*1. Any ideas?



  4. #4
    Bob Phillips
    Guest

    Re: Conditional Sum Product

    I have written a page on that. See
    http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
    explanation.

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    <[email protected]> wrote in message
    news:[email protected]...
    > Bob,
    >
    > I was reading thru some of the posts and saw your response...I have a
    > question. I use sumproduct alot, but I do not/have not used the (--
    > What does this do exactly?
    >
    > Thanks,
    >
    > Hans
    >
    > Bob Phillips wrote:
    > > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    > >
    > > --
    > >
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (replace xxxx in the email address with gmail if mailing direct)
    > >
    > > "Ben010" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I want to get the sumproduct of two rows of numbers based on an IF

    > > condition
    > > > in a related row. The formula would look like this:
    > > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise

    Multiplier
    > > =1
    > > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes" then

    the
    > > > product would be b2*b3*1. Any ideas?

    >




  5. #5
    Ben010
    Guest

    Re: Conditional Sum Product

    Bob--
    Thanks. My original query was probably not clear. If A1:Z1 is "Yes" then I
    want the cell to compute to your answer times a multiplier. If "No" I want
    the cell to compute to exactly your answer (multiplier =1).

    Ben

    "Bob Phillips" wrote:

    > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Ben010" <[email protected]> wrote in message
    > news:[email protected]...
    > > I want to get the sumproduct of two rows of numbers based on an IF

    > condition
    > > in a related row. The formula would look like this:
    > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise Multiplier

    > =1
    > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes" then the
    > > product would be b2*b3*1. Any ideas?

    >
    >
    >


  6. #6
    Bob Phillips
    Guest

    Re: Conditional Sum Product

    What multiplier?

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    "Ben010" <[email protected]> wrote in message
    news:[email protected]...
    > Bob--
    > Thanks. My original query was probably not clear. If A1:Z1 is "Yes" then

    I
    > want the cell to compute to your answer times a multiplier. If "No" I

    want
    > the cell to compute to exactly your answer (multiplier =1).
    >
    > Ben
    >
    > "Bob Phillips" wrote:
    >
    > > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    > >
    > > --
    > >
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (replace xxxx in the email address with gmail if mailing direct)
    > >
    > > "Ben010" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I want to get the sumproduct of two rows of numbers based on an IF

    > > condition
    > > > in a related row. The formula would look like this:
    > > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise

    Multiplier
    > > =1
    > > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes" then

    the
    > > > product would be b2*b3*1. Any ideas?

    > >
    > >
    > >




  7. #7
    Ben010
    Guest

    Re: Conditional Sum Product

    Let me show you the first part of my array:
    A B C D X Y
    1 Yes No Yes Yes 1.5 1
    2 6 3 2 2
    3 2 4 6 3

    A1:D3 is my array. X and Y are the multipliers. The calculation for this
    would be :
    6*2*1.5+ 3*4*1+ 2*6*1.5+ 2*3*1.5. Thus, if A1:D1 is "Yes" then the
    corresponding product multiplies by 1.5. If A1:D1 is "No" then it multiplies
    by 1.



    "Bob Phillips" wrote:

    > What multiplier?
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Ben010" <[email protected]> wrote in message
    > news:[email protected]...
    > > Bob--
    > > Thanks. My original query was probably not clear. If A1:Z1 is "Yes" then

    > I
    > > want the cell to compute to your answer times a multiplier. If "No" I

    > want
    > > the cell to compute to exactly your answer (multiplier =1).
    > >
    > > Ben
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    > > >
    > > > --
    > > >
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > (replace xxxx in the email address with gmail if mailing direct)
    > > >
    > > > "Ben010" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > I want to get the sumproduct of two rows of numbers based on an IF
    > > > condition
    > > > > in a related row. The formula would look like this:
    > > > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise

    > Multiplier
    > > > =1
    > > > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes" then

    > the
    > > > > product would be b2*b3*1. Any ideas?
    > > >
    > > >
    > > >

    >
    >
    >


  8. #8
    Bob Phillips
    Guest

    Re: Conditional Sum Product

    =SUMPRODUCT((ISNUMBER(SEARCH({"Yes";"No"},A1:Z1)))*({1.5;1})*(A2:Z2)*(A3:Z3)
    )

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    "Ben010" <[email protected]> wrote in message
    news:[email protected]...
    > Let me show you the first part of my array:
    > A B C D X Y
    > 1 Yes No Yes Yes 1.5 1
    > 2 6 3 2 2
    > 3 2 4 6 3
    >
    > A1:D3 is my array. X and Y are the multipliers. The calculation for this
    > would be :
    > 6*2*1.5+ 3*4*1+ 2*6*1.5+ 2*3*1.5. Thus, if A1:D1 is "Yes" then the
    > corresponding product multiplies by 1.5. If A1:D1 is "No" then it

    multiplies
    > by 1.
    >
    >
    >
    > "Bob Phillips" wrote:
    >
    > > What multiplier?
    > >
    > > --
    > >
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (replace xxxx in the email address with gmail if mailing direct)
    > >
    > > "Ben010" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Bob--
    > > > Thanks. My original query was probably not clear. If A1:Z1 is "Yes"

    then
    > > I
    > > > want the cell to compute to your answer times a multiplier. If "No"

    I
    > > want
    > > > the cell to compute to exactly your answer (multiplier =1).
    > > >
    > > > Ben
    > > >
    > > > "Bob Phillips" wrote:
    > > >
    > > > > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    > > > >
    > > > > --
    > > > >
    > > > > HTH
    > > > >
    > > > > Bob Phillips
    > > > >
    > > > > (replace xxxx in the email address with gmail if mailing direct)
    > > > >
    > > > > "Ben010" <[email protected]> wrote in message
    > > > > news:[email protected]...
    > > > > > I want to get the sumproduct of two rows of numbers based on an IF
    > > > > condition
    > > > > > in a related row. The formula would look like this:
    > > > > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise

    > > Multiplier
    > > > > =1
    > > > > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes"

    then
    > > the
    > > > > > product would be b2*b3*1. Any ideas?
    > > > >
    > > > >
    > > > >

    > >
    > >
    > >




  9. #9
    Ben010
    Guest

    Re: Conditional Sum Product

    Bob--
    Thanks. I appreciate the help.

    "Bob Phillips" wrote:

    > =SUMPRODUCT((ISNUMBER(SEARCH({"Yes";"No"},A1:Z1)))*({1.5;1})*(A2:Z2)*(A3:Z3)
    > )
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Ben010" <[email protected]> wrote in message
    > news:[email protected]...
    > > Let me show you the first part of my array:
    > > A B C D X Y
    > > 1 Yes No Yes Yes 1.5 1
    > > 2 6 3 2 2
    > > 3 2 4 6 3
    > >
    > > A1:D3 is my array. X and Y are the multipliers. The calculation for this
    > > would be :
    > > 6*2*1.5+ 3*4*1+ 2*6*1.5+ 2*3*1.5. Thus, if A1:D1 is "Yes" then the
    > > corresponding product multiplies by 1.5. If A1:D1 is "No" then it

    > multiplies
    > > by 1.
    > >
    > >
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > What multiplier?
    > > >
    > > > --
    > > >
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > (replace xxxx in the email address with gmail if mailing direct)
    > > >
    > > > "Ben010" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > Bob--
    > > > > Thanks. My original query was probably not clear. If A1:Z1 is "Yes"

    > then
    > > > I
    > > > > want the cell to compute to your answer times a multiplier. If "No"

    > I
    > > > want
    > > > > the cell to compute to exactly your answer (multiplier =1).
    > > > >
    > > > > Ben
    > > > >
    > > > > "Bob Phillips" wrote:
    > > > >
    > > > > > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    > > > > >
    > > > > > --
    > > > > >
    > > > > > HTH
    > > > > >
    > > > > > Bob Phillips
    > > > > >
    > > > > > (replace xxxx in the email address with gmail if mailing direct)
    > > > > >
    > > > > > "Ben010" <[email protected]> wrote in message
    > > > > > news:[email protected]...
    > > > > > > I want to get the sumproduct of two rows of numbers based on an IF
    > > > > > condition
    > > > > > > in a related row. The formula would look like this:
    > > > > > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise
    > > > Multiplier
    > > > > > =1
    > > > > > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes"

    > then
    > > > the
    > > > > > > product would be b2*b3*1. Any ideas?
    > > > > >
    > > > > >
    > > > > >
    > > >
    > > >
    > > >

    >
    >
    >


  10. #10

    Re: Conditional Sum Product

    Bob....Thanks a bunch! Bookmarked your site!

    Hans


    Bob Phillips wrote:
    > I have written a page on that. See
    > http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
    > explanation.
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > <[email protected]> wrote in message
    > news:[email protected]...
    > > Bob,
    > >
    > > I was reading thru some of the posts and saw your response...I have a
    > > question. I use sumproduct alot, but I do not/have not used the (--
    > > What does this do exactly?
    > >
    > > Thanks,
    > >
    > > Hans
    > >
    > > Bob Phillips wrote:
    > > > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    > > >
    > > > --
    > > >
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > (replace xxxx in the email address with gmail if mailing direct)
    > > >
    > > > "Ben010" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > I want to get the sumproduct of two rows of numbers based on an IF
    > > > condition
    > > > > in a related row. The formula would look like this:
    > > > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise

    > Multiplier
    > > > =1
    > > > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes" then

    > the
    > > > > product would be b2*b3*1. Any ideas?

    > >



  11. #11
    Ben010
    Guest

    Re: Conditional Sum Product

    Bob--
    How can I make the {1.5;1} numbers variables? That is I want to reference a
    cell rather than make them numbers, such as {v1;v2}

    Ben

    "Bob Phillips" wrote:

    > =SUMPRODUCT((ISNUMBER(SEARCH({"Yes";"No"},A1:Z1)))*({1.5;1})*(A2:Z2)*(A3:Z3)
    > )
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Ben010" <[email protected]> wrote in message
    > news:[email protected]...
    > > Let me show you the first part of my array:
    > > A B C D X Y
    > > 1 Yes No Yes Yes 1.5 1
    > > 2 6 3 2 2
    > > 3 2 4 6 3
    > >
    > > A1:D3 is my array. X and Y are the multipliers. The calculation for this
    > > would be :
    > > 6*2*1.5+ 3*4*1+ 2*6*1.5+ 2*3*1.5. Thus, if A1:D1 is "Yes" then the
    > > corresponding product multiplies by 1.5. If A1:D1 is "No" then it

    > multiplies
    > > by 1.
    > >
    > >
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > What multiplier?
    > > >
    > > > --
    > > >
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > (replace xxxx in the email address with gmail if mailing direct)
    > > >
    > > > "Ben010" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > Bob--
    > > > > Thanks. My original query was probably not clear. If A1:Z1 is "Yes"

    > then
    > > > I
    > > > > want the cell to compute to your answer times a multiplier. If "No"

    > I
    > > > want
    > > > > the cell to compute to exactly your answer (multiplier =1).
    > > > >
    > > > > Ben
    > > > >
    > > > > "Bob Phillips" wrote:
    > > > >
    > > > > > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    > > > > >
    > > > > > --
    > > > > >
    > > > > > HTH
    > > > > >
    > > > > > Bob Phillips
    > > > > >
    > > > > > (replace xxxx in the email address with gmail if mailing direct)
    > > > > >
    > > > > > "Ben010" <[email protected]> wrote in message
    > > > > > news:[email protected]...
    > > > > > > I want to get the sumproduct of two rows of numbers based on an IF
    > > > > > condition
    > > > > > > in a related row. The formula would look like this:
    > > > > > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes", otherwise
    > > > Multiplier
    > > > > > =1
    > > > > > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes"

    > then
    > > > the
    > > > > > > product would be b2*b3*1. Any ideas?
    > > > > >
    > > > > >
    > > > > >
    > > >
    > > >
    > > >

    >
    >
    >


  12. #12
    Bob Phillips
    Guest

    Re: Conditional Sum Product

    Yeah, if contiguous

    =SUMPRODUCT((ISNUMBER(SEARCH({"Yes";"No"},A1:Z1)))*(V1:V2)*(A2:Z2)*(A3:Z3))

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    "Ben010" <[email protected]> wrote in message
    news:[email protected]...
    > Bob--
    > How can I make the {1.5;1} numbers variables? That is I want to reference

    a
    > cell rather than make them numbers, such as {v1;v2}
    >
    > Ben
    >
    > "Bob Phillips" wrote:
    >
    > >

    =SUMPRODUCT((ISNUMBER(SEARCH({"Yes";"No"},A1:Z1)))*({1.5;1})*(A2:Z2)*(A3:Z3)
    > > )
    > >
    > > --
    > >
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (replace xxxx in the email address with gmail if mailing direct)
    > >
    > > "Ben010" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Let me show you the first part of my array:
    > > > A B C D X Y
    > > > 1 Yes No Yes Yes 1.5 1
    > > > 2 6 3 2 2
    > > > 3 2 4 6 3
    > > >
    > > > A1:D3 is my array. X and Y are the multipliers. The calculation for

    this
    > > > would be :
    > > > 6*2*1.5+ 3*4*1+ 2*6*1.5+ 2*3*1.5. Thus, if A1:D1 is "Yes" then the
    > > > corresponding product multiplies by 1.5. If A1:D1 is "No" then it

    > > multiplies
    > > > by 1.
    > > >
    > > >
    > > >
    > > > "Bob Phillips" wrote:
    > > >
    > > > > What multiplier?
    > > > >
    > > > > --
    > > > >
    > > > > HTH
    > > > >
    > > > > Bob Phillips
    > > > >
    > > > > (replace xxxx in the email address with gmail if mailing direct)
    > > > >
    > > > > "Ben010" <[email protected]> wrote in message
    > > > > news:[email protected]...
    > > > > > Bob--
    > > > > > Thanks. My original query was probably not clear. If A1:Z1 is

    "Yes"
    > > then
    > > > > I
    > > > > > want the cell to compute to your answer times a multiplier. If

    "No"
    > > I
    > > > > want
    > > > > > the cell to compute to exactly your answer (multiplier =1).
    > > > > >
    > > > > > Ben
    > > > > >
    > > > > > "Bob Phillips" wrote:
    > > > > >
    > > > > > > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    > > > > > >
    > > > > > > --
    > > > > > >
    > > > > > > HTH
    > > > > > >
    > > > > > > Bob Phillips
    > > > > > >
    > > > > > > (replace xxxx in the email address with gmail if mailing direct)
    > > > > > >
    > > > > > > "Ben010" <[email protected]> wrote in message
    > > > > > > news:[email protected]...
    > > > > > > > I want to get the sumproduct of two rows of numbers based on

    an IF
    > > > > > > condition
    > > > > > > > in a related row. The formula would look like this:
    > > > > > > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes",

    otherwise
    > > > > Multiplier
    > > > > > > =1
    > > > > > > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes"

    > > then
    > > > > the
    > > > > > > > product would be b2*b3*1. Any ideas?
    > > > > > >
    > > > > > >
    > > > > > >
    > > > >
    > > > >
    > > > >

    > >
    > >
    > >




  13. #13
    Ben010
    Guest

    Re: Conditional Sum Product

    Nice. Thanks!

    "Bob Phillips" wrote:

    > Yeah, if contiguous
    >
    > =SUMPRODUCT((ISNUMBER(SEARCH({"Yes";"No"},A1:Z1)))*(V1:V2)*(A2:Z2)*(A3:Z3))
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Ben010" <[email protected]> wrote in message
    > news:[email protected]...
    > > Bob--
    > > How can I make the {1.5;1} numbers variables? That is I want to reference

    > a
    > > cell rather than make them numbers, such as {v1;v2}
    > >
    > > Ben
    > >
    > > "Bob Phillips" wrote:
    > >
    > > >

    > =SUMPRODUCT((ISNUMBER(SEARCH({"Yes";"No"},A1:Z1)))*({1.5;1})*(A2:Z2)*(A3:Z3)
    > > > )
    > > >
    > > > --
    > > >
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > (replace xxxx in the email address with gmail if mailing direct)
    > > >
    > > > "Ben010" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > Let me show you the first part of my array:
    > > > > A B C D X Y
    > > > > 1 Yes No Yes Yes 1.5 1
    > > > > 2 6 3 2 2
    > > > > 3 2 4 6 3
    > > > >
    > > > > A1:D3 is my array. X and Y are the multipliers. The calculation for

    > this
    > > > > would be :
    > > > > 6*2*1.5+ 3*4*1+ 2*6*1.5+ 2*3*1.5. Thus, if A1:D1 is "Yes" then the
    > > > > corresponding product multiplies by 1.5. If A1:D1 is "No" then it
    > > > multiplies
    > > > > by 1.
    > > > >
    > > > >
    > > > >
    > > > > "Bob Phillips" wrote:
    > > > >
    > > > > > What multiplier?
    > > > > >
    > > > > > --
    > > > > >
    > > > > > HTH
    > > > > >
    > > > > > Bob Phillips
    > > > > >
    > > > > > (replace xxxx in the email address with gmail if mailing direct)
    > > > > >
    > > > > > "Ben010" <[email protected]> wrote in message
    > > > > > news:[email protected]...
    > > > > > > Bob--
    > > > > > > Thanks. My original query was probably not clear. If A1:Z1 is

    > "Yes"
    > > > then
    > > > > > I
    > > > > > > want the cell to compute to your answer times a multiplier. If

    > "No"
    > > > I
    > > > > > want
    > > > > > > the cell to compute to exactly your answer (multiplier =1).
    > > > > > >
    > > > > > > Ben
    > > > > > >
    > > > > > > "Bob Phillips" wrote:
    > > > > > >
    > > > > > > > =SUMPRODUCT(--(A1:Z1="Yes"),A2:Z2,A3:Z3)
    > > > > > > >
    > > > > > > > --
    > > > > > > >
    > > > > > > > HTH
    > > > > > > >
    > > > > > > > Bob Phillips
    > > > > > > >
    > > > > > > > (replace xxxx in the email address with gmail if mailing direct)
    > > > > > > >
    > > > > > > > "Ben010" <[email protected]> wrote in message
    > > > > > > > news:[email protected]...
    > > > > > > > > I want to get the sumproduct of two rows of numbers based on

    > an IF
    > > > > > > > condition
    > > > > > > > > in a related row. The formula would look like this:
    > > > > > > > > =Sumproduct(a2:z2, a3:z3)* Multiplier if a1:z1="Yes",

    > otherwise
    > > > > > Multiplier
    > > > > > > > =1
    > > > > > > > > So if a1="Yes" then the product would be a2*a3*M; if b1<>"Yes"
    > > > then
    > > > > > the
    > > > > > > > > product would be b2*b3*1. Any ideas?
    > > > > > > >
    > > > > > > >
    > > > > > > >
    > > > > >
    > > > > >
    > > > > >
    > > >
    > > >
    > > >

    >
    >
    >


+ 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