Inconsistent COUNTIFS() function

paras7

New Member
Joined
Jan 6, 2016
Messages
6
Hi,
I've data in three columns as
Cathode Make, Age, BT
Sgl, 900, 970
Yunnan, 2100, 965
Sgl, 250, 978
Yunnan, 1678,969
Xhanxi, 299, 962
Xhanxi, 1890, 970
Sgl, 210, 971
Now I wish to count the no of readings in column 3(i.e. BT) Which are >970 with corresponding value in column 1(i.e. Cathode make)=Sgl and values in column2(i.e. Age) falling between 60 & 300.

I'm doing this with countifs function(along with AND function for >60, <300 condition), but it's not giving the desired result.

Kindly help.

Regards
Paras
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi, something like this?


Excel 2013
ABCDE
1Cathode MakeAgeBT
2Sgl9009702
3Yunnan2100965
4Sgl250978
5Yunnan1678969
6Xhanxi299962
7Xhanxi1890970
8Sgl210971
Sheet1
Cell Formulas
RangeFormula
E2=COUNTIFS(A2:A8,"SGL",B2:B8,">=60",B2:B8,"<=300",C2:C8,">970")
 
Upvote 0
COUNTIFS doesnt require an AND, all the conditions must be true for a cell to be counted, hence it uses AND by its very nature.

=COUNTIFS(A2:A8,"Sgl",B2:B8,">60",B2:B8,"<300",C2:C8,">970")
 
Last edited:
Upvote 0
Hey thanks a lot for the prompt response!
but this thing is still not working, actually i've kept data in one sheet(DRF-R2) and the formula in other.
I'm using this formula

=COUNTIFS('DRF-R2'!C3:C40,"SGL", 'DRF-R2'!E3:E40,">60", 'DRF-R2'!E3:E40, "<300",'DRF-R2'!R3:R40,">970")


ay0kdj.jpg


I'm getting 0 as the result.
 
Upvote 0
That picture doesn't help at all.
Formula references column C E and R, but the picture doesn't tell us which column is which..
And NONE of the numbers in the picture are between 60 and 300, or over 970.
And NONE of the values = SGL

Pictures generally don't help anyway, we can't copy paste the values into our own sheets for troubleshooting.
See my signature for a link to an HTML tool that will help you post nicely formatted tables from your sheet to the forum.
 
Last edited:
Upvote 0
hey, apologies!

i agree pictures doesn't solve the purpose here. I guess my formula is working now, to be honest i didn't had values which matched the criteria. Altered few of them and verified the consistency, its actually working.
Thanks again :)
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,390
Members
449,445
Latest member
JJFabEngineering

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top