AND/OR Function for COUNTIF Referencing another sheet
Hello, Smartsheets Gurus!
I am building a formula to reference another sheet {ISIR Pulls 2023-2024, Column EX Major (Range)} with two different EX Majors within the range I'm trying to total up. The two things I am looking to identify are EX Major "BSC" and "BSD".
If I just do:
=COUNTIF({ISIR Pulls 2023-2024 Range 1}, ="BSC") I get 8. (which is correct)
=COUNTIF({ISIR Pulls 2023-2024 Range 1}, ="BSD") I get 1. (which is correct)
However, when I try to factor in both "BSC" or "BSD" into my formula, I'm getting #UNPARSEABLE. I should be getting a total of 9.
I feel like I'm close, yet so far....here is my formula. I'm not going to pretend I understand where the OR goes.
=COUNTIFS({ISIR Pulls 2023-2024 Range 1}, "BSC", OR COUNTIFS({ISIR Pulls 2023-2024 Range 1}, "BSD"))
What am I doing wrong?🤷
Best Answer
-
=COUNTIF( {ISIR Pulls 2023-2024 Range 1}, OR(@cell = "BSC", @cell = "BSD") )
...
Answers
-
=COUNTIF( {ISIR Pulls 2023-2024 Range 1}, OR(@cell = "BSC", @cell = "BSD") )
...
-
@heyjay you are amazing!!! It worked just like that!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!