+ Reply to Thread
Results 1 to 4 of 4

Two Criteria in SumIf Function

  1. #1
    Jack Gillis
    Guest

    Two Criteria in SumIf Function


    I would like to use Excel's SUMIF function to get the sum of a field in a
    database using TWO criteria. That is for example, get the sum of field A if
    the data in field B is one value and the data in field C is another so that
    I have the sum of A's when B and C meet their criteria.

    I do it now with a pivot table but would like to eliminate the table.

    Is this possible?

    Thank you very much.



  2. #2
    Don Guillett
    Guest

    Re: Two Criteria in SumIf Function

    try
    =sumproduct((rngb=1)*(rngc="b")*rnga)

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Jack Gillis" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I would like to use Excel's SUMIF function to get the sum of a field in a
    > database using TWO criteria. That is for example, get the sum of field A
    > if the data in field B is one value and the data in field C is another so
    > that I have the sum of A's when B and C meet their criteria.
    >
    > I do it now with a pivot table but would like to eliminate the table.
    >
    > Is this possible?
    >
    > Thank you very much.
    >




  3. #3
    Bob Phillips
    Guest

    Re: Two Criteria in SumIf Function

    =SUMPRODUCT(--(B1:B200="text"),--(C1:C200=number),A1:A200)

    --

    HTH

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


    "Jack Gillis" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I would like to use Excel's SUMIF function to get the sum of a field in a
    > database using TWO criteria. That is for example, get the sum of field A

    if
    > the data in field B is one value and the data in field C is another so

    that
    > I have the sum of A's when B and C meet their criteria.
    >
    > I do it now with a pivot table but would like to eliminate the table.
    >
    > Is this possible?
    >
    > Thank you very much.
    >
    >




  4. #4
    Jack Gillis
    Guest

    Re: Two Criteria in SumIf Function

    Thank you Bob and Don. I will give that a try.

    "Jack Gillis" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I would like to use Excel's SUMIF function to get the sum of a field in a
    > database using TWO criteria. That is for example, get the sum of field A
    > if the data in field B is one value and the data in field C is another so
    > that I have the sum of A's when B and C meet their criteria.
    >
    > I do it now with a pivot table but would like to eliminate the table.
    >
    > Is this possible?
    >
    > Thank you very much.
    >




+ 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