how to include an OR criteria in a Countif Statement

Patcheen

Active Member
Joined
Sep 28, 2015
Messages
391
Office Version
  1. 365
Platform
  1. Windows
Hi All

im stuck on the below formula

=COUNTIFS('Match Database'!$F:$F,"home",'Match Database'!$G:$G,"lost",'Match Database'!$H:$H,"LL",'Match Database'!$B:$B,B4) (This works perfect as is)

my prob is

How can i include "Or criteria" to the above formula

=COUNTIFS(OR('Match Database'!$F:$F,"home",'Match Database'!$G:$G,"lost",'Match Database'!$H:$H,"LL","Current",'Match Database'!$B:$B,B4)

i was thinking but not sure something like the above adjusted formula - all im trying to include is word "current" in the same column H:H as the "L:L" (Ive undelined what im trying to incluide in formula (But may have it all wrong)

ive tried the above but it says "The formula is missing a Opening or closing parenthesis"

TIA
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
the simplest way maybe to just add them:
=COUNTIFS('Match Database'!$F:$F,"home",'Match Database'!$G:$G,"lost",'Match Database'!$H:$H,"LL",'Match Database'!$B:$B,B4)+COUNTIFS('Match Database'!$F:$F,"home",'Match Database'!$G:$G,"lost",'Match Database'!$H:$H,"Current",'Match Database'!$B:$B,B4)
 
Upvote 0
another option would be:
=sum(COUNTIFS('Match Database'!$F:$F,"home",'Match Database'!$G:$G,"lost",'Match Database'!$H:$H,{"LL","Current"},'Match Database'!$B:$B,B4))
you may need to use ctrl+shift+enter for this one
 
Upvote 1
Solution
Thank you so much for your help this has solved my issue your brill thank you
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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