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
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 201 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 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!