# How do I COUNTIF C2:C260<20, AND value_in_column_I=5 ?

#### MrNewBee

##### New Member
I'm sure this is simple, but being a complete newbie, I need a little formula help. I have inherited a workbook and need to chart three values from column I, where the values in Column C is <20. I've tried variations of COUNTIF and IF(COUNTIF, and can't work it out, and I'm hitting a deadline. Thanks in advance for any suggestions.
Mr. NewBee :wink:

More details: Basically I need three formulas, so I can chart this, one where column I value is 5, one where it is 4 and one where it is 3, and the values in column C are less than 20. Column C is numbers 0-100. Column C is only 3-5.

### Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

#### Oaktree

##### MrExcel MVP
Welcome to the board.

Try:

=SUMPRODUCT(--(C2:C260<20),--(I2:I260=5))

#### MrNewBee

##### New Member
Wonderful. I would never have thought that SUMPRODUCT would get me where I was going. That works excellent! Thank you!

#### MrNewBee

##### New Member
Hmmm.. Looks like I spoke too soon. It worked on my small example with only values, but it doesn't seem to work on the real sheet?

I have a sheet which is a large table full of formulas and numbers. The number evaluations are actually created by use of a complex formula using VLOOKUP at it's heart.

#### MrNewBee

##### New Member
OH, I got it. The 5,4,3 column was numbers, formatted as text. I had to convert it to actual numbers (duh). Thanks!

Replies
4
Views
181
Replies
3
Views
56
Replies
3
Views
425
Replies
39
Views
1K
Replies
2
Views
97

1,141,402
Messages
5,706,239
Members
421,433
Latest member
yash0468

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back