+ Reply to Thread
Results 1 to 6 of 6

SUMIF, COUNTIF with multiple criteria

  1. #1
    Registered User
    Join Date
    08-01-2006
    Posts
    27

    SUMIF, COUNTIF with multiple criteria

    Quick question about SUMIF and COUNTIF with multiple criteria: I've attached an example. Basically, I want to include a cell in the sum if it's value is greater than the MINPRICE value and the AVAIL value for its column is equal to 1. Is there any way to write this in one cell as a concise formula, as opposed to writing seven different SUMIF and COUNTIF functions?

    Thanks for any help!
    Attached Files Attached Files
    Last edited by montreal1775; 03-05-2010 at 12:16 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: SUMIF, COUNTIF with multiple criteria

    How do you get 15 as per your example?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-01-2006
    Posts
    27

    Re: SUMIF, COUNTIF with multiple criteria

    It's arbitrary, but I included the cell because in the actual workbook the value is based on other cells.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: SUMIF, COUNTIF with multiple criteria

    So are you trying to sum all the values in columns B:H where row 53 contains a 1?

    Maybe:

    =SUMPRODUCT((B53:H53=1)*(B2:H52>B54),B2:H52)

  5. #5
    Registered User
    Join Date
    08-01-2006
    Posts
    27

    Re: SUMIF, COUNTIF with multiple criteria

    Thanks! That worked. Can I use a similar argument to count the cells that satisfy those criteria?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: SUMIF, COUNTIF with multiple criteria

    Yes, just remove the last argument


    =SUMPRODUCT((B53:H53=1)*(B2:H52>B54))

+ 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