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".
-
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
- 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!