COUNTIFS including OR

Mickes

New Member
Joined
Sep 22, 2014
Messages
4
Hi,

Trying to create this formula... but there seems to be some error. Cant seem to figure out how to combine COUNTIFS with OR

=COUNTIFS('In Native source'!$A:$A,$A4,'In Native source'!K:K,"no")+OR('In Native source'!J:J,"a",'In Native source'!J:J,"b",'In Native source'!J:J,"c")

So the first two criteria are obligatory, bot have to be, and then it can be either of the three following.

Thanks for any assistance!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
17,035
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Try

=SUM(COUNTIFS('In Native source'!$A:$A,$A4,'In Native source'!K:K,"no",'In Native source'!J:J,{"a";"b";"c"}))

Hope this helps

M.
 

Steph77

Board Regular
Joined
Sep 18, 2014
Messages
119
Try this:

=COUNTIFS('In Native source'!$A:$A,$A4,'In Native source'!K:K,"no",'In Native source'!J:J,"a")+COUNTIFS('In Native source'!$A:$A,$A4,'In Native source'!K:K,"no",'In Native source'!J:J,"b")+COUNTIFS('In Native source'!$A:$A,$A4,'In Native source'!K:K,"no",'In Native source'!J:J,"c")
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,629
Messages
5,838,454
Members
430,549
Latest member
jayjay2022

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
Top