how to include an OR criteria in a Countif Statement

Patcheen

Active Member
Joined
Sep 28, 2015
Messages
388
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 did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,215,077
Messages
6,122,995
Members
449,094
Latest member
masterms

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