COUNTIFS doesn't work but IF works just fine

Excel in Curiosity

New Member
Joined
Sep 15, 2021
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
I have 3 cells with numbers E20 is 5, F20 is 2 and Y20 is 3.


In cell Z20:

=IF(Y20>F20,IF(Y20<E20,1,"")) gives me 1

However,

=COUNTIFS(Y20,">F20",Y20,"<E20") gives me 0



I can't figure out what happened. I have checked using isnumber() that all values are in fact numbers.

I need to use the countifs formula, please help.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
try the syntax below
T202109a.xlsm
EFGHI
205211
4e
Cell Formulas
RangeFormula
H20H20=IF(Y20>F20,IF(Y20<E20,1,""))
I20I20=COUNTIFS(Y20,">"&F20,Y20,"<"&E20)
 
Upvote 0
Hello, sorry for the late reply. I can't believe the speed you guys reply!
Thank you for all the replies. They work now thanks to you guys!!
 
Upvote 0

Forum statistics

Threads
1,223,710
Messages
6,174,019
Members
452,542
Latest member
Bricklin

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