multiple criteria for COUNTIFS

BurkeDad

New Member
Joined
Jul 8, 2011
Messages
24
I am trying to create a COUNTIFS formula with multiple criteria. When I create the formula for 2 criterias, it works fine, but when I add a third, it returns a value of 0 - and I know the answer should be 5. Here is the first formula - =COUNTIFS(Retirement!$A$2:$A$12085,'Cost Center View'!$E$4,Retirement!$E$2:$E$12085,0).

Here is the new formula with just one more criteria added - =COUNTIFS(Retirement!$A$2:$A$12085,'Cost Center View'!$E$4,Retirement!$E$2:$E$12085,1,Retirement!$E$2:$E$12085,2)

a2:a12085 is the Location Number, E4 is the specific location I am searching for, and Retirement E2:E12085 is the years until retirement. I am trying to count the number of empliyees that will be retiring in specific year ranges.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try...

=COUNTIFS(Retirement!$A$2:$A$12085,'Cost Center View'!$E$4,Retirement!$E$2:$E$12085,">=1",Retirement!$E$2:$E$12085,"<=2")
 
Upvote 0
What I ended up doing was putting the >1 and <2 outside of the form and refering to those cells in the formula. That way, if the numbers ever changed, I would not have to mess with the formula.

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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