# SUMIF, COUNTIF with multiple criteria

1. ## 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!

2. ## Re: SUMIF, COUNTIF with multiple criteria

How do you get 15 as per your example?

3. ## 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. ## 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. ## Re: SUMIF, COUNTIF with multiple criteria

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

6. ## Re: SUMIF, COUNTIF with multiple criteria

Yes, just remove the last argument

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

#### Thread Information

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### 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