Link to home
Start Free TrialLog in
Avatar of samiam41
samiam41Flag for United States of America

asked on

Excel formula to get past div/0 error

Hey experts.  Pretty simple equation I'm trying to use but keep getting the div/0 error so I decided to post the question.  I tried following the steps here (https://www.timeatlas.com/excel-divide-by-0-error/) but my simple mind couldn't grasp it.

Player 1->  5 shots, 0 goals (should be 0% accuracy but I get error instead)

Attached spreadsheet for reference.  Thank you in advance for your help.

EE_Accuracy.xlsx
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

You could use

=IFERROR(C2/B2,"")
Avatar of samiam41

ASKER

Hi Roy.  That prevents the error but doesn't show 0% which is what the player's accuracy would be.
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Quick and easy.  Thanks!