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
Check out the Formula Handbook template!