Percent function is not working as intended - shows 100 when that is not correct

This is the current function that AI produced for my question "Percent Inquiry related to not blank"
=COUNTIF([Inquiry related to]:[Inquiry related to], NOT(ISBLANK(@cell ))) / COUNT([Inquiry related to]:[Inquiry related to]) * 100
When I filter the data manually, I find that 267 (not blank)/508 total rows - should be 52.56% but its showing 100
I searched this question and one solution was to add COUNTIF to denominator, but this also did not work and gave #Incorrect Argument Set error.
Answers
-
The COUNT function will only count non-blank cells. The above will always output 100. Try the below and format your column for percentages.
=COUNTIFS([Inquiry related to]:[Inquiry related to], @cell <> "") / COUNTIFS([Inquiry related to]:[Inquiry related to], OR(@cell = "", @cell <> ""))
Help Article Resources
Categories
Check out the Formula Handbook template!