Ignoring N/A in Formula
Any ideas on how to ignore an N/A in this formula? Essentially, I want this row to show 100% since the N/A cell can be ignored. Any help would be appreciated. Thanks.
=IFERROR(COUNTIF([Assets Audit]12:[Prop65 Warning Label]12, "YES") / COUNT([Assets Audit]12:[Prop65 Warning Label]12), "0")
Best Answer
-
Here is how I tested it and it works on my end on this small example. I hope this helps.
Answers
-
Hi @Astazio
The below formula should work. I got this from a similar thread from 2019. So credit goes to @Paul Newcome.
=COUNTIFS([Assets Audit]@row:[Prop65 Warning Label]@row, "Yes") / COUNTIFS([Assets Audit]@row:[Prop65 Warning Label]@row, NOT(@cell = "N/A"))
-
Thanks, Matt. When I use that formula I get a #DIVIDE BY ZERO. Any thoughts on what may be causing that?
-
Here is how I tested it and it works on my end on this small example. I hope this helps.
-
@Astazio You have "YES" vs "Yes". Referencing a symbol in a formula is case sensitive. Since you are looking for "YES" in your formula, it is returning a 0 (zero) for your initial COUNTIFS because there are no cells that contain "YES". The green cells contain "Yes".
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Thanks to you both.
@Matt Johnson Matt, I appreciate the visual. I was able to see what I was doing based off of your screenshot. I was putting the cell number (12 in this instance) instead of @cell. Thanks for your help on this.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 379 Global Discussions
- 210 Industry Talk
- 441 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 300 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!