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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!