#Divide by Zero Error
Hello,
It's been awhile since i wrote a big formula. I just need some guidance on getting my formula to return to 0 if there is no data to populate a value. As you can see i have some other IFERROR logic in my formula but for the overall sum I cannot for the life of me figure this one out.
=SUMIFS({1st Reply Duration}, {1st Reply Duration}, ISNUMBER(@cell), {Replied}, ISDATE(@cell), {Replied}, (IFERROR(MONTH(@cell), 0) = 5), {Replied}, (IFERROR(YEAR(@cell), 0) = 2024)) / COUNTIFS({1st Reply Duration}, ISNUMBER(@cell), {Replied}, ISDATE(@cell), {Replied}, (IFERROR(MONTH(@cell), 0) = 5), {Replied}, (IFERROR(YEAR(@cell), 0) = 2024))
Answers
-
Hey @tim.curtin25,
Would you be able to provide a screenshot of your sheet that you're using this formula in? Please be sure to obscure any sensitive information
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
-
@bisaacs Sure thing. The columns at the end are the ones utilized for the formula.
Date Replied = {Replied}
-
Thanks @tim.curtin25!
I'm assuming the duration columns are just calculating the difference between Date Recd, Date Replied, and Date Email Forwarded?
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
-
@bisaacs Yes correct.
-
@tim.curtin25 Hmmmmm. Could you make the formula part of an IF statement that checks if specific cells are blank? Something like:
=IF(OR(ISBLANK([Your Column]@row), ISBLANK([Other Column]@row)), "0", SUMIFS({1st Reply Duration}, {1st Reply Duration}, ISNUMBER(@cell), {Replied}, ISDATE(@cell), {Replied}, (IFERROR(MONTH(@cell), 0) = 5), {Replied}, (IFERROR(YEAR(@cell), 0) = 2024)) / COUNTIFS({1st Reply Duration}, ISNUMBER(@cell), {Replied}, ISDATE(@cell), {Replied}, (IFERROR(MONTH(@cell), 0) = 5), {Replied}, (IFERROR(YEAR(@cell), 0) = 2024))
Would that maybe work?
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!