Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Help with formula to avoid #DIVIDE BYZERO ERROR message
Hello, I have a large formula trying to achieve an AverageIf function - but I still sometimes get the #Divide By Zero error - any ideas of what i can do to the formula to avoid this?
=SUMIFS([HEP Time (Minutes)]:[HEP Time (Minutes)], [HEP Name]:[HEP Name], "Galvin Davidson", [Current Month]:[Current Month], 1, Action:Action, "DELIVERY", [HEP Time (Minutes)]:[HEP Time (Minutes)], "<300", [HEP Time (Minutes)]:[HEP Time (Minutes)], ">0") / COUNTIFS([HEP Name]:[HEP Name], "Galvin Davidson", [Current Month]:[Current Month], 1, Action:Action, "DELIVERY", [HEP Time (Minutes)]:[HEP Time (Minutes)], "<300", [HEP Time (Minutes)]:[HEP Time (Minutes)], ">0")
Comments
-
Try wrapping the whole thing in the IFERROR() function
https://help.smartsheet.com/articles/775363-using-formulas#iferror
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives