#DIVIDE BY ZERO Message/PERCENTILE Formula

I am using the formula =PERCENTILE(Agree@row / $[Total # of Surveys Completed]@row, 1) when the column Total# of Surveys Completed is 0, the message is returned #Divide by Zero. I want to show 0% instead of "Divide by Zero.
It does show 0% when any number of Total# of Surveys Completed is <0.
I'm sure there is a simple solution, but I can't seem to figure it out. Thank you-
Best Answers
-
Hi,
Use IfError function , such as :
=IFERROR( mylongFormula ,0)
-
This helped to find the answer,
=IFERROR(PERCENTILE(Agree@row / $[Total # of Surveys Completed]@row, 1), 0)
I have proofed it to the sheet and do not see any errors with data or without data. Thank you.
Answers
-
Hi,
Use IfError function , such as :
=IFERROR( mylongFormula ,0)
-
This helped to find the answer,
=IFERROR(PERCENTILE(Agree@row / $[Total # of Surveys Completed]@row, 1), 0)
I have proofed it to the sheet and do not see any errors with data or without data. Thank you.
Help Article Resources
Categories
Check out the Formula Handbook template!