Using COUNTIF/COUNTIFS with OR statements
If I want to do a row count, where if Col1= 4 or 5 OR Col2 = 4 or 5, what is the best way to go about this? So for the example below, the count is 3.
Appreciate any help. Thank you.
Answers
-
Create a helper column with the following formula.
=IF(AND(OR([Col1]@row = 4, [Col1]@row = 5), OR([Col2]@row = 4, [Col2]@row = 5)), 1, 0)
Then you can count up the number of occurrences of the number 1.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!