#DivideBYZero
Good morning, I have this formula that is displaying this error as noting is filled out yet in the columns
How to I not get this error and just have a 0 or leave it blank so it does not look bad? Thank you
=SUM(BAE@row / (([HRS/Day]@row) * [Crew Size]@row))
Best Answer
-
I don't know why you are summing it.. as the math is occurring on a row by row basis.. but anyway..
I think this gives you what you want.. checking for no value before doing the calculation..
=IF(OR([HRS/Day]@row = 0, [Crew Size]@row = 0), "", BAE@row / ([HRS/Day]@row * [Crew Size]@row))
It will leave a blank in the Duration Calculation until filled in.. You can change this to Zero by simply
=IF(OR([HRS/Day]@row = 0, [Crew Size]@row = 0), 0, BAE@row / ([HRS/Day]@row * [Crew Size]@row))
Answers
-
I don't know why you are summing it.. as the math is occurring on a row by row basis.. but anyway..
I think this gives you what you want.. checking for no value before doing the calculation..
=IF(OR([HRS/Day]@row = 0, [Crew Size]@row = 0), "", BAE@row / ([HRS/Day]@row * [Crew Size]@row))
It will leave a blank in the Duration Calculation until filled in.. You can change this to Zero by simply
=IF(OR([HRS/Day]@row = 0, [Crew Size]@row = 0), 0, BAE@row / ([HRS/Day]@row * [Crew Size]@row))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!