Excel - Countifs Formula help with Multiple criteria

Mallesh23

Well-known Member
Joined
Feb 4, 2009
Messages
983
Office Version
  1. 2010
Platform
  1. Windows
Hi Team,


Need your help in understanding the countifs formula, when I give More Criteria in Array It gives different result.


Below formula gives Correct result.
=COUNTIFS($H:$H,"South",$I:$I,"NY",$J:$J,"Pending")
=SUM(COUNTIFS($H:$H,{"South","North"},$I:$I,"NY",$J:$J,"Finished"))


Here Below formula not giving correct result. when cross checked with manual filter in excel.


=SUM(COUNTIFS($H:$H,{"South","North"},$I:$I,"NY",$J:$J,{"Finished","Pending"}))
=SUM(COUNTIFS($H:$H,{"South","North","West"},$I:$I,{"NY","London"},$J:$J,"Finished"))


Please suggest correct formula to extract counts using mutliple criteria. Thanks




Thanks in advance for your help.


Regards,
mg
 
Hi Fluff,

I just identified the problem, but not yet sorted, It will be great help if you can correct it. Thanks
Sheet1.Range("m2").Value = Application.Sum(Application.CountIfs(rng1, ar1, rng2, ar2, rng3, "Finished"))

Regards,
mg
 
Upvote 0

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.
Ok, you need to change the 2nd array to
Code:
ar2 = Array(Array("NY"), Array("LONDON"))
 
Upvote 0
Hi Fluff,
I am too much Glad now , Jumping with Joy. Thanks for your help till end.
:beerchug:

Regards,
mg
 
Upvote 0
My pleasure & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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