Using multiple conditions from multiple columns for CountIF

Hi, I'm trying to use conditional logic to count how many rows meet the following conditions. But I seem to missing something...
=COUNTIF(([Approval Status]:[Approval Status], OR(@cell = "Approved", @cell = "Exception Approved")), +([Promo]:[Promo], OR(@cell = "Value 1", @cell ="Value 2", @cell = "Value 3")))
I've also tried this:
=COUNTIF(([Approval Status]:[Approval Status], OR(@cell = "Approved", @cell = "Exception Approved")), AND([Promo]:[Promo], OR(@cell = "Value 1", @cell ="Value 2", @cell = "Value 3")))
I also tried
=COUNTIFS(([Approval Status]:[Approval Status], OR(@cell = "Approved", @cell = "Exception Approved")), +([Promo]:[Promo], OR(@cell = "Value 1", @cell ="Value 2", @cell = "Value 3")))
=COUNTIFS(([Approval Status]:[Approval Status], OR(@cell = "Approved", @cell = "Exception Approved")), AND([Promo]:[Promo], OR(@cell = "Value 1", @cell ="Value 2", @cell = "Value 3")))
Best Answer
-
Based on your updated post with the COUNTIFS, your second COUNTIFS would be the closest but you have too many parenthesis tucked in and you do not need the AND statement. Try just following the syntax outlined in the article. There are a few examples underneath the "Usage Notes" section that show the proper syntax.
Answers
-
You need a COUNTIFS (with the "S" on the end) to include multiple range/criteria sets.
-
Thanks Paul, I tried that and it also didn't work. I think there must be a syntax issue...
-
Based on your updated post with the COUNTIFS, your second COUNTIFS would be the closest but you have too many parenthesis tucked in and you do not need the AND statement. Try just following the syntax outlined in the article. There are a few examples underneath the "Usage Notes" section that show the proper syntax.
-
Thanks Paul, here is the updated syntax and it works! Thank you!
=COUNTIFS([Approval Status]:[Approval Status], OR(@cell = "Approved", @cell = "Exception Approved"), [Promo]:[Promo], OR(@cell = "Value 1", @cell = "Value 1", @cell = "Value 1"))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 449 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!