Help with Formula
I'm working on a formula that will look at cell A if it is = "Milestone" perform this function, if not do this. Have that working.
My issue is if the denominator is 0 is produces an error. I would like to add code to return 0 if denominator is 0. The top code is what I need to figure out. The bottom code is what is working.
if FF revenue recognized or total consumed is 0 return 0 (part I need to work into this)
Best Answer
-
Hello @dgdrinkard
Try this:
=IF(OR([FF Revenue Recognized-YTD]12 = 0, [Total Consumed]12 = 0), 0, IF([Hours Estimated]7 = "Milestone", (([FF Revenue Recognized-YTD]12 - [Total cost YTD]12) / [FF Revenue Recognized-YTD]12), (([Total Consumed]12 - [Total cost YTD]12) / [Total Consumed]12)))
Peggy
Answers
-
Hello @dgdrinkard
Try this:
=IF(OR([FF Revenue Recognized-YTD]12 = 0, [Total Consumed]12 = 0), 0, IF([Hours Estimated]7 = "Milestone", (([FF Revenue Recognized-YTD]12 - [Total cost YTD]12) / [FF Revenue Recognized-YTD]12), (([Total Consumed]12 - [Total cost YTD]12) / [Total Consumed]12)))
Peggy
-
Thank you. That did it!
-
Awesome! Happy to help.
If my post helped or answered your question, please support the Community by marking it Insightful/Vote Up/Awesome or/and as the accepted answer.
Have a great weekend!
Peggy
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!