I can't figure out how to use the OR function in a Countifs formula
Hello,
I have been creating metrics on my data in smartsheet using the different formulas. I have figured many out (with a lot of head banging and sleepless nights), but cannot figure out how to use the OR function.
works: =COUNTIFS({Week}, =$[Date Range]$3, {Month}, $[Date Range]$5, {Year}, $[Date Range]$8, {task status}, "PCC Case Submitted")
Does not work: =COUNTIFS({Week}, =$[Date Range]$3, {Month}, $[Date Range]$5, {Year}, $[Date Range]$8, OR({task status}, "PCC Case Submitted", "PCC Case Now Closed"))
What I am doing wrong with the or functionality?
Comments
-
I've attached a screenshot showing a simplified version of the formula.
-
Mike,
Forgot a comma in the posted formula after {task Status}.
=COUNTIFS({Week}, =$[Date Range]$3, {Month}, $[Date Range]$5, {Year}, $[Date Range]$8, {task status}, OR(@cell = "PCC Case Submitted", @cell = "PCC Case Now Closed"))
.
.
Colleen,
Another part of the problem with your formula is that you are including your range within the OR function. You should only include the criteria (and Mike's correction of using @cell).
Original:
OR({task status}, "PCC Case Submitted", "PCC Case Now Closed")
Corrected:
{task status}, OR(@cell = "PCC Case Submitted", @cell = "PCC Case Now Closed")
-
Thanks, Paul! Good catch.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!