COUNTIFS across columns with multiple options for one column
I am trying to write a formula to count the number of columns across five nonadjacent columns that contain "Verified". The fifth column may contain "N/A" and also needs to be counted.
In the example, 5 should be the total count for both rows. I've tried adding multiple COUNTIFS, and it doesn't work.
Thanks in advance for your help.
Lori F.
Best Answer
-
Try this. Each one of the COUNTIF formulas should equal 1 or 0.
=COUNTIF(A@row, "Verified") + COUNTIF(B@row, "Verified) + COUNTIF(C@row, "Verified") + COUNTIF(D@row, "Verified) + COUNTIF(E@row, OR(@cell = "Verified", @cell = "N/A"))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Try this. Each one of the COUNTIF formulas should equal 1 or 0.
=COUNTIF(A@row, "Verified") + COUNTIF(B@row, "Verified) + COUNTIF(C@row, "Verified") + COUNTIF(D@row, "Verified) + COUNTIF(E@row, OR(@cell = "Verified", @cell = "N/A"))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thank you, Jeff! The OR part of the formula is what kept tripping me up. This worked. Much appreciated!
Lori
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives