+ Reply to Thread
Results 1 to 44 of 44

SumIf function

Hybrid View

  1. #1
    nc
    Guest

    SumIf function

    EENF EPDA EKHC GGEN
    Expenditure 1 2 3 4
    Income 2 2 2 6
    Capital additions 5 2 4 5
    Income 7 8 9 5
    Capital additions 10 11 12 11

    How can I total the more than one column if the criteria is "Income"?

  2. #2
    Bob Phillips
    Guest

    Re: SumIf function

    =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "nc" <[email protected]> wrote in message
    news:[email protected]...
    > EENF EPDA EKHC GGEN
    > Expenditure 1 2 3 4
    > Income 2 2 2 6
    > Capital additions 5 2 4 5
    > Income 7 8 9 5
    > Capital additions 10 11 12 11
    >
    > How can I total the more than one column if the criteria is "Income"?




  3. #3
    Bob Phillips
    Guest

    Re: SumIf function

    =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "nc" <[email protected]> wrote in message
    news:[email protected]...
    > EENF EPDA EKHC GGEN
    > Expenditure 1 2 3 4
    > Income 2 2 2 6
    > Capital additions 5 2 4 5
    > Income 7 8 9 5
    > Capital additions 10 11 12 11
    >
    > How can I total the more than one column if the criteria is "Income"?




  4. #4
    Bob Phillips
    Guest

    Re: SumIf function

    =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "nc" <[email protected]> wrote in message
    news:[email protected]...
    > EENF EPDA EKHC GGEN
    > Expenditure 1 2 3 4
    > Income 2 2 2 6
    > Capital additions 5 2 4 5
    > Income 7 8 9 5
    > Capital additions 10 11 12 11
    >
    > How can I total the more than one column if the criteria is "Income"?




  5. #5
    nc
    Guest

    Re: SumIf function

    Thanks Bob.

    I have about 10 columns. I was looking for a symplified function.

    "Bob Phillips" wrote:

    > =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "nc" <[email protected]> wrote in message
    > news:[email protected]...
    > > EENF EPDA EKHC GGEN
    > > Expenditure 1 2 3 4
    > > Income 2 2 2 6
    > > Capital additions 5 2 4 5
    > > Income 7 8 9 5
    > > Capital additions 10 11 12 11
    > >
    > > How can I total the more than one column if the criteria is "Income"?

    >
    >
    >


  6. #6
    nc
    Guest

    Re: SumIf function

    Thanks Bob.

    I have about 10 columns. I was looking for a symplified function.

    "Bob Phillips" wrote:

    > =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "nc" <[email protected]> wrote in message
    > news:[email protected]...
    > > EENF EPDA EKHC GGEN
    > > Expenditure 1 2 3 4
    > > Income 2 2 2 6
    > > Capital additions 5 2 4 5
    > > Income 7 8 9 5
    > > Capital additions 10 11 12 11
    > >
    > > How can I total the more than one column if the criteria is "Income"?

    >
    >
    >


  7. #7
    nc
    Guest

    Re: SumIf function

    Thanks Bob.

    I have about 10 columns. I was looking for a symplified function.

    "Bob Phillips" wrote:

    > =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "nc" <[email protected]> wrote in message
    > news:[email protected]...
    > > EENF EPDA EKHC GGEN
    > > Expenditure 1 2 3 4
    > > Income 2 2 2 6
    > > Capital additions 5 2 4 5
    > > Income 7 8 9 5
    > > Capital additions 10 11 12 11
    > >
    > > How can I total the more than one column if the criteria is "Income"?

    >
    >
    >


  8. #8
    Duke Carey
    Guest

    Re: SumIf function

    Then add one more column that sums across the row, then use one of Bob's
    SUMIF() functions and reference the new column

    "nc" wrote:

    > Thanks Bob.
    >
    > I have about 10 columns. I was looking for a symplified function.
    >
    > "Bob Phillips" wrote:
    >
    > > =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "nc" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > EENF EPDA EKHC GGEN
    > > > Expenditure 1 2 3 4
    > > > Income 2 2 2 6
    > > > Capital additions 5 2 4 5
    > > > Income 7 8 9 5
    > > > Capital additions 10 11 12 11
    > > >
    > > > How can I total the more than one column if the criteria is "Income"?

    > >
    > >
    > >


  9. #9
    Duke Carey
    Guest

    Re: SumIf function

    Then add one more column that sums across the row, then use one of Bob's
    SUMIF() functions and reference the new column

    "nc" wrote:

    > Thanks Bob.
    >
    > I have about 10 columns. I was looking for a symplified function.
    >
    > "Bob Phillips" wrote:
    >
    > > =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "nc" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > EENF EPDA EKHC GGEN
    > > > Expenditure 1 2 3 4
    > > > Income 2 2 2 6
    > > > Capital additions 5 2 4 5
    > > > Income 7 8 9 5
    > > > Capital additions 10 11 12 11
    > > >
    > > > How can I total the more than one column if the criteria is "Income"?

    > >
    > >
    > >


  10. #10
    Duke Carey
    Guest

    Re: SumIf function

    Then add one more column that sums across the row, then use one of Bob's
    SUMIF() functions and reference the new column

    "nc" wrote:

    > Thanks Bob.
    >
    > I have about 10 columns. I was looking for a symplified function.
    >
    > "Bob Phillips" wrote:
    >
    > > =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "nc" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > EENF EPDA EKHC GGEN
    > > > Expenditure 1 2 3 4
    > > > Income 2 2 2 6
    > > > Capital additions 5 2 4 5
    > > > Income 7 8 9 5
    > > > Capital additions 10 11 12 11
    > > >
    > > > How can I total the more than one column if the criteria is "Income"?

    > >
    > >
    > >


  11. #11
    Bob Phillips
    Guest

    Re: SumIf function

    Here is a formula with a few columns, add the rest

    =SUMPRODUCT(--(A2:A20="Income"),B2:B20+C2:C20+D2:D20)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "nc" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks Bob.
    >
    > I have about 10 columns. I was looking for a symplified function.
    >
    > "Bob Phillips" wrote:
    >
    > > =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "nc" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > EENF EPDA EKHC GGEN
    > > > Expenditure 1 2 3 4
    > > > Income 2 2 2 6
    > > > Capital additions 5 2 4 5
    > > > Income 7 8 9 5
    > > > Capital additions 10 11 12 11
    > > >
    > > > How can I total the more than one column if the criteria is "Income"?

    > >
    > >
    > >




  12. #12
    Bob Phillips
    Guest

    Re: SumIf function

    Here is a formula with a few columns, add the rest

    =SUMPRODUCT(--(A2:A20="Income"),B2:B20+C2:C20+D2:D20)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "nc" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks Bob.
    >
    > I have about 10 columns. I was looking for a symplified function.
    >
    > "Bob Phillips" wrote:
    >
    > > =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "nc" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > EENF EPDA EKHC GGEN
    > > > Expenditure 1 2 3 4
    > > > Income 2 2 2 6
    > > > Capital additions 5 2 4 5
    > > > Income 7 8 9 5
    > > > Capital additions 10 11 12 11
    > > >
    > > > How can I total the more than one column if the criteria is "Income"?

    > >
    > >
    > >




  13. #13
    Bob Phillips
    Guest

    Re: SumIf function

    Here is a formula with a few columns, add the rest

    =SUMPRODUCT(--(A2:A20="Income"),B2:B20+C2:C20+D2:D20)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "nc" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks Bob.
    >
    > I have about 10 columns. I was looking for a symplified function.
    >
    > "Bob Phillips" wrote:
    >
    > > =sumif(A2:A20="Income"),B2:B20)+sumif(A2:A20="Income"),C2:C20)
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "nc" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > EENF EPDA EKHC GGEN
    > > > Expenditure 1 2 3 4
    > > > Income 2 2 2 6
    > > > Capital additions 5 2 4 5
    > > > Income 7 8 9 5
    > > > Capital additions 10 11 12 11
    > > >
    > > > How can I total the more than one column if the criteria is "Income"?

    > >
    > >
    > >




  14. #14
    Domenic
    Guest

    Re: SumIf function

    Try...

    =SUMPRODUCT((A2:A6="Income")*(B2:E6))

    Adjust the range accordingly.

    Hope this helps!

    In article <[email protected]>,
    "nc" <[email protected]> wrote:

    > EENF EPDA EKHC GGEN
    > Expenditure 1 2 3 4
    > Income 2 2 2 6
    > Capital additions 5 2 4 5
    > Income 7 8 9 5
    > Capital additions 10 11 12 11
    >
    > How can I total the more than one column if the criteria is "Income"?


  15. #15
    Domenic
    Guest

    Re: SumIf function

    Try...

    =SUMPRODUCT((A2:A6="Income")*(B2:E6))

    Adjust the range accordingly.

    Hope this helps!

    In article <[email protected]>,
    "nc" <[email protected]> wrote:

    > EENF EPDA EKHC GGEN
    > Expenditure 1 2 3 4
    > Income 2 2 2 6
    > Capital additions 5 2 4 5
    > Income 7 8 9 5
    > Capital additions 10 11 12 11
    >
    > How can I total the more than one column if the criteria is "Income"?


  16. #16
    Domenic
    Guest

    Re: SumIf function

    Try...

    =SUMPRODUCT((A2:A6="Income")*(B2:E6))

    Adjust the range accordingly.

    Hope this helps!

    In article <[email protected]>,
    "nc" <[email protected]> wrote:

    > EENF EPDA EKHC GGEN
    > Expenditure 1 2 3 4
    > Income 2 2 2 6
    > Capital additions 5 2 4 5
    > Income 7 8 9 5
    > Capital additions 10 11 12 11
    >
    > How can I total the more than one column if the criteria is "Income"?


  17. #17
    nc
    Guest

    Re: SumIf function

    Thanks Domenic.

    Can this function be adapted to use more than one criteria.

    "Domenic" wrote:

    > Try...
    >
    > =SUMPRODUCT((A2:A6="Income")*(B2:E6))
    >
    > Adjust the range accordingly.
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > "nc" <[email protected]> wrote:
    >
    > > EENF EPDA EKHC GGEN
    > > Expenditure 1 2 3 4
    > > Income 2 2 2 6
    > > Capital additions 5 2 4 5
    > > Income 7 8 9 5
    > > Capital additions 10 11 12 11
    > >
    > > How can I total the more than one column if the criteria is "Income"?

    >


  18. #18
    nc
    Guest

    Re: SumIf function

    Thanks Domenic.

    Can this function be adapted to use more than one criteria.

    "Domenic" wrote:

    > Try...
    >
    > =SUMPRODUCT((A2:A6="Income")*(B2:E6))
    >
    > Adjust the range accordingly.
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > "nc" <[email protected]> wrote:
    >
    > > EENF EPDA EKHC GGEN
    > > Expenditure 1 2 3 4
    > > Income 2 2 2 6
    > > Capital additions 5 2 4 5
    > > Income 7 8 9 5
    > > Capital additions 10 11 12 11
    > >
    > > How can I total the more than one column if the criteria is "Income"?

    >


  19. #19
    nc
    Guest

    Re: SumIf function

    Thanks Domenic.

    Can this function be adapted to use more than one criteria.

    "Domenic" wrote:

    > Try...
    >
    > =SUMPRODUCT((A2:A6="Income")*(B2:E6))
    >
    > Adjust the range accordingly.
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > "nc" <[email protected]> wrote:
    >
    > > EENF EPDA EKHC GGEN
    > > Expenditure 1 2 3 4
    > > Income 2 2 2 6
    > > Capital additions 5 2 4 5
    > > Income 7 8 9 5
    > > Capital additions 10 11 12 11
    > >
    > > How can I total the more than one column if the criteria is "Income"?

    >


  20. #20
    Domenic
    Guest

    Re: SumIf function

    Sure...

    =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    )*(RangeToSum))

    Remove the quotes if your criterion is a numerical value.

    Hope this helps!

    In article <[email protected]>,
    "nc" <[email protected]> wrote:

    > Thanks Domenic.
    >
    > Can this function be adapted to use more than one criteria.


  21. #21
    Domenic
    Guest

    Re: SumIf function

    Sure...

    =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    )*(RangeToSum))

    Remove the quotes if your criterion is a numerical value.

    Hope this helps!

    In article <[email protected]>,
    "nc" <[email protected]> wrote:

    > Thanks Domenic.
    >
    > Can this function be adapted to use more than one criteria.


  22. #22
    Harlan Grove
    Guest

    Re: SumIf function

    Domenic wrote...
    >Sure...
    >
    >=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    >*(RangeC="Criterion")*(RangeToSum))

    ....

    I'm not an absolutist about using separate arguments for all criteria
    arguments, but the value array should be a separate argument in
    conditional sums (as opposed to conditional counts), i.e.,

    =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    *(RangeC="Criterion"),RangeToSum)

    because SUMPRODUCT will ignore entries in RangeToSum that aren't
    numeric and can't be converted to numeric *IF* RangeToSum were a
    separate argument. In that situation, your formula would return
    #VALUE!.


  23. #23
    Harlan Grove
    Guest

    Re: SumIf function

    Domenic wrote...
    >Sure...
    >
    >=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    >*(RangeC="Criterion")*(RangeToSum))

    ....

    I'm not an absolutist about using separate arguments for all criteria
    arguments, but the value array should be a separate argument in
    conditional sums (as opposed to conditional counts), i.e.,

    =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    *(RangeC="Criterion"),RangeToSum)

    because SUMPRODUCT will ignore entries in RangeToSum that aren't
    numeric and can't be converted to numeric *IF* RangeToSum were a
    separate argument. In that situation, your formula would return
    #VALUE!.


  24. #24
    Harlan Grove
    Guest

    Re: SumIf function

    Domenic wrote...
    >Sure...
    >
    >=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    >*(RangeC="Criterion")*(RangeToSum))

    ....

    I'm not an absolutist about using separate arguments for all criteria
    arguments, but the value array should be a separate argument in
    conditional sums (as opposed to conditional counts), i.e.,

    =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    *(RangeC="Criterion"),RangeToSum)

    because SUMPRODUCT will ignore entries in RangeToSum that aren't
    numeric and can't be converted to numeric *IF* RangeToSum were a
    separate argument. In that situation, your formula would return
    #VALUE!.


  25. #25
    Domenic
    Guest

    Re: SumIf function

    Thanks Harlan! The reason I didn't use a separate argument here is that
    the range actually spans a number of columns. I should have made that
    clear...

    Thanks again, Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> wrote:

    > Domenic wrote...
    > >Sure...
    > >
    > >=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > >*(RangeC="Criterion")*(RangeToSum))

    > ...
    >
    > I'm not an absolutist about using separate arguments for all criteria
    > arguments, but the value array should be a separate argument in
    > conditional sums (as opposed to conditional counts), i.e.,
    >
    > =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > *(RangeC="Criterion"),RangeToSum)
    >
    > because SUMPRODUCT will ignore entries in RangeToSum that aren't
    > numeric and can't be converted to numeric *IF* RangeToSum were a
    > separate argument. In that situation, your formula would return
    > #VALUE!.


  26. #26
    Domenic
    Guest

    Re: SumIf function

    Thanks Harlan! The reason I didn't use a separate argument here is that
    the range actually spans a number of columns. I should have made that
    clear...

    Thanks again, Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> wrote:

    > Domenic wrote...
    > >Sure...
    > >
    > >=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > >*(RangeC="Criterion")*(RangeToSum))

    > ...
    >
    > I'm not an absolutist about using separate arguments for all criteria
    > arguments, but the value array should be a separate argument in
    > conditional sums (as opposed to conditional counts), i.e.,
    >
    > =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > *(RangeC="Criterion"),RangeToSum)
    >
    > because SUMPRODUCT will ignore entries in RangeToSum that aren't
    > numeric and can't be converted to numeric *IF* RangeToSum were a
    > separate argument. In that situation, your formula would return
    > #VALUE!.


  27. #27
    Domenic
    Guest

    Re: SumIf function

    Thanks Harlan! The reason I didn't use a separate argument here is that
    the range actually spans a number of columns. I should have made that
    clear...

    Thanks again, Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> wrote:

    > Domenic wrote...
    > >Sure...
    > >
    > >=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > >*(RangeC="Criterion")*(RangeToSum))

    > ...
    >
    > I'm not an absolutist about using separate arguments for all criteria
    > arguments, but the value array should be a separate argument in
    > conditional sums (as opposed to conditional counts), i.e.,
    >
    > =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > *(RangeC="Criterion"),RangeToSum)
    >
    > because SUMPRODUCT will ignore entries in RangeToSum that aren't
    > numeric and can't be converted to numeric *IF* RangeToSum were a
    > separate argument. In that situation, your formula would return
    > #VALUE!.


  28. #28
    RagDyer
    Guest

    Re: SumIf function

    But in some (many) situations, that error return would be a welcomed trap,
    denoting contaminated data.
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------

    "Harlan Grove" <[email protected]> wrote in message
    news:[email protected]...
    > Domenic wrote...
    > >Sure...
    > >
    > >=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > >*(RangeC="Criterion")*(RangeToSum))

    > ...
    >
    > I'm not an absolutist about using separate arguments for all criteria
    > arguments, but the value array should be a separate argument in
    > conditional sums (as opposed to conditional counts), i.e.,
    >
    > =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > *(RangeC="Criterion"),RangeToSum)
    >
    > because SUMPRODUCT will ignore entries in RangeToSum that aren't
    > numeric and can't be converted to numeric *IF* RangeToSum were a
    > separate argument. In that situation, your formula would return
    > #VALUE!.
    >



  29. #29
    RagDyer
    Guest

    Re: SumIf function

    But in some (many) situations, that error return would be a welcomed trap,
    denoting contaminated data.
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------

    "Harlan Grove" <[email protected]> wrote in message
    news:[email protected]...
    > Domenic wrote...
    > >Sure...
    > >
    > >=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > >*(RangeC="Criterion")*(RangeToSum))

    > ...
    >
    > I'm not an absolutist about using separate arguments for all criteria
    > arguments, but the value array should be a separate argument in
    > conditional sums (as opposed to conditional counts), i.e.,
    >
    > =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > *(RangeC="Criterion"),RangeToSum)
    >
    > because SUMPRODUCT will ignore entries in RangeToSum that aren't
    > numeric and can't be converted to numeric *IF* RangeToSum were a
    > separate argument. In that situation, your formula would return
    > #VALUE!.
    >



  30. #30
    RagDyer
    Guest

    Re: SumIf function

    But in some (many) situations, that error return would be a welcomed trap,
    denoting contaminated data.
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------

    "Harlan Grove" <[email protected]> wrote in message
    news:[email protected]...
    > Domenic wrote...
    > >Sure...
    > >
    > >=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > >*(RangeC="Criterion")*(RangeToSum))

    > ...
    >
    > I'm not an absolutist about using separate arguments for all criteria
    > arguments, but the value array should be a separate argument in
    > conditional sums (as opposed to conditional counts), i.e.,
    >
    > =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")
    > *(RangeC="Criterion"),RangeToSum)
    >
    > because SUMPRODUCT will ignore entries in RangeToSum that aren't
    > numeric and can't be converted to numeric *IF* RangeToSum were a
    > separate argument. In that situation, your formula would return
    > #VALUE!.
    >



  31. #31
    nc
    Guest

    Re: SumIf function

    Hi Domenic

    I tried using the following function,

    =SUMPRODUCT((A2:A6="Dividend")*(A2:A6="Interest")*(B2:D6)) with the table
    below and I get a value of zero. I was expecting 1200.

    Jan Feb March
    Dividend 100 100 100
    Interest 100 100 100
    Expenses -100 -100 -100
    Dividend 100 100 100
    Interest 100 100 100


    Thanks.


    "Domenic" wrote:

    > Sure...
    >
    > =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    > )*(RangeToSum))
    >
    > Remove the quotes if your criterion is a numerical value.
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > "nc" <[email protected]> wrote:
    >
    > > Thanks Domenic.
    > >
    > > Can this function be adapted to use more than one criteria.

    >


  32. #32
    nc
    Guest

    Re: SumIf function

    Hi Domenic

    I tried using the following function,

    =SUMPRODUCT((A2:A6="Dividend")*(A2:A6="Interest")*(B2:D6)) with the table
    below and I get a value of zero. I was expecting 1200.

    Jan Feb March
    Dividend 100 100 100
    Interest 100 100 100
    Expenses -100 -100 -100
    Dividend 100 100 100
    Interest 100 100 100


    Thanks.


    "Domenic" wrote:

    > Sure...
    >
    > =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    > )*(RangeToSum))
    >
    > Remove the quotes if your criterion is a numerical value.
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > "nc" <[email protected]> wrote:
    >
    > > Thanks Domenic.
    > >
    > > Can this function be adapted to use more than one criteria.

    >


  33. #33
    nc
    Guest

    Re: SumIf function

    Hi Domenic

    I tried using the following function,

    =SUMPRODUCT((A2:A6="Dividend")*(A2:A6="Interest")*(B2:D6)) with the table
    below and I get a value of zero. I was expecting 1200.

    Jan Feb March
    Dividend 100 100 100
    Interest 100 100 100
    Expenses -100 -100 -100
    Dividend 100 100 100
    Interest 100 100 100


    Thanks.


    "Domenic" wrote:

    > Sure...
    >
    > =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    > )*(RangeToSum))
    >
    > Remove the quotes if your criterion is a numerical value.
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > "nc" <[email protected]> wrote:
    >
    > > Thanks Domenic.
    > >
    > > Can this function be adapted to use more than one criteria.

    >


  34. #34
    KL
    Guest

    Re: SumIf function

    Hi,

    Try this:

    =SUMPRODUCT(((A2:A6="Dividend")+(A2:A6="Interest")>0)*(B2:D6))

    Your formula basically says sum if a cell is equal to "Dividend" AND
    "Interest" (which isn't possible) while it should say sum if a cell is equal
    to "Dividend" OR "Interest"

    Regards,
    KL


    "nc" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Domenic
    >
    > I tried using the following function,
    >
    > =SUMPRODUCT((A2:A6="Dividend")*(A2:A6="Interest")*(B2:D6)) with the table
    > below and I get a value of zero. I was expecting 1200.
    >
    > Jan Feb March
    > Dividend 100 100 100
    > Interest 100 100 100
    > Expenses -100 -100 -100
    > Dividend 100 100 100
    > Interest 100 100 100
    >
    >
    > Thanks.
    >
    >
    > "Domenic" wrote:
    >
    >> Sure...
    >>
    >> =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    >> )*(RangeToSum))
    >>
    >> Remove the quotes if your criterion is a numerical value.
    >>
    >> Hope this helps!
    >>
    >> In article <[email protected]>,
    >> "nc" <[email protected]> wrote:
    >>
    >> > Thanks Domenic.
    >> >
    >> > Can this function be adapted to use more than one criteria.

    >>




  35. #35
    KL
    Guest

    Re: SumIf function

    Hi,

    Try this:

    =SUMPRODUCT(((A2:A6="Dividend")+(A2:A6="Interest")>0)*(B2:D6))

    Your formula basically says sum if a cell is equal to "Dividend" AND
    "Interest" (which isn't possible) while it should say sum if a cell is equal
    to "Dividend" OR "Interest"

    Regards,
    KL


    "nc" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Domenic
    >
    > I tried using the following function,
    >
    > =SUMPRODUCT((A2:A6="Dividend")*(A2:A6="Interest")*(B2:D6)) with the table
    > below and I get a value of zero. I was expecting 1200.
    >
    > Jan Feb March
    > Dividend 100 100 100
    > Interest 100 100 100
    > Expenses -100 -100 -100
    > Dividend 100 100 100
    > Interest 100 100 100
    >
    >
    > Thanks.
    >
    >
    > "Domenic" wrote:
    >
    >> Sure...
    >>
    >> =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    >> )*(RangeToSum))
    >>
    >> Remove the quotes if your criterion is a numerical value.
    >>
    >> Hope this helps!
    >>
    >> In article <[email protected]>,
    >> "nc" <[email protected]> wrote:
    >>
    >> > Thanks Domenic.
    >> >
    >> > Can this function be adapted to use more than one criteria.

    >>




  36. #36
    KL
    Guest

    Re: SumIf function

    Hi,

    Try this:

    =SUMPRODUCT(((A2:A6="Dividend")+(A2:A6="Interest")>0)*(B2:D6))

    Your formula basically says sum if a cell is equal to "Dividend" AND
    "Interest" (which isn't possible) while it should say sum if a cell is equal
    to "Dividend" OR "Interest"

    Regards,
    KL


    "nc" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Domenic
    >
    > I tried using the following function,
    >
    > =SUMPRODUCT((A2:A6="Dividend")*(A2:A6="Interest")*(B2:D6)) with the table
    > below and I get a value of zero. I was expecting 1200.
    >
    > Jan Feb March
    > Dividend 100 100 100
    > Interest 100 100 100
    > Expenses -100 -100 -100
    > Dividend 100 100 100
    > Interest 100 100 100
    >
    >
    > Thanks.
    >
    >
    > "Domenic" wrote:
    >
    >> Sure...
    >>
    >> =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    >> )*(RangeToSum))
    >>
    >> Remove the quotes if your criterion is a numerical value.
    >>
    >> Hope this helps!
    >>
    >> In article <[email protected]>,
    >> "nc" <[email protected]> wrote:
    >>
    >> > Thanks Domenic.
    >> >
    >> > Can this function be adapted to use more than one criteria.

    >>




  37. #37
    Aladin Akyurek
    Guest

    Re: SumIf function

    Why not create an additional column, say E, that sums monthly values
    like in:

    E2, copied down:

    =SUM(B2:D2)

    which allows you to avoid expensive conditional calculations?

    nc wrote:
    > Hi Domenic
    >
    > I tried using the following function,
    >
    > =SUMPRODUCT((A2:A6="Dividend")*(A2:A6="Interest")*(B2:D6)) with the table
    > below and I get a value of zero. I was expecting 1200.
    >
    > Jan Feb March
    > Dividend 100 100 100
    > Interest 100 100 100
    > Expenses -100 -100 -100
    > Dividend 100 100 100
    > Interest 100 100 100
    >
    >
    > Thanks.
    >
    >
    > "Domenic" wrote:
    >
    >
    >>Sure...
    >>
    >>=SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    >>)*(RangeToSum))
    >>
    >>Remove the quotes if your criterion is a numerical value.
    >>
    >>Hope this helps!
    >>
    >>In article <[email protected]>,
    >> "nc" <[email protected]> wrote:
    >>
    >>
    >>>Thanks Domenic.
    >>>
    >>>Can this function be adapted to use more than one criteria.

    >>


  38. #38
    Domenic
    Guest

    Re: SumIf function

    Sure...

    =SUMPRODUCT((RangeA="Criterion")*(RangeB="Criterion")*(RangeC="Criterion"
    )*(RangeToSum))

    Remove the quotes if your criterion is a numerical value.

    Hope this helps!

    In article <[email protected]>,
    "nc" <[email protected]> wrote:

    > Thanks Domenic.
    >
    > Can this function be adapted to use more than one criteria.


+ 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