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
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 460 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives