COUNTIFS with only 2 cells

Kmanbozzy

New Member
Joined
Apr 18, 2016
Messages
18
I must not understand the countifs function like i thought i did... I just want to check 2 cells if they = 0. here is my formula =COUNTIFS(E6,0,E9,0) i've tried "=0" and i still get the same results. both cells are numbers and = 0 but the result is 1. it should be 2. E7 and E8 equal 0 as well, but i dont want to count those in my formula so that's why i'm not using just countif.

What am i doing wrong?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Countifs is counting it as 1 if both cells = 0, which is correct, try it as

=COUNTIFS(E6,0)+COUNTIFS(E9,0)
 
Upvote 0
Countifs function is for multiple criteria. You have only one criteria. So you should use =countif(A6:A9,0)
This will scan the range A6:A9 and return number of zeros in the range.
 
Upvote 0
Multiple ranges in countifs are tested parallel, if both = 0 then it counts as 1, if neither = 0 then it counts as 0.

You don't need countifs to test individual cells anyway, simple logical tests work fine for that. =(E6=0)+(E9=0)

@mainfolder I think that you missed this part of the post,
E7 and E8 equal 0 as well, but i dont want to count those in my formula so that's why i'm not using just countif.
 
Upvote 0

Forum statistics

Threads
1,223,959
Messages
6,175,649
Members
452,663
Latest member
MEMEH

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