Gary Thornton
New member
How do I suppress zero and negative results in my spreadsheet?
Hello Gary Thornton,
Thank you for the follow-up and for sharing your formulas!
You can nest your logic inside an additional IF that checks the final outcome to suppress zero or negative results. Here's how you can modify your formulas:
Your Formula:
=IF($G$10>200,0,CEILING.MATH($F$10-$G$10,50)/50)
Updated formula to suppress 0 or negative:
=IF(IF($G$10>200,0,CEILING.MATH($F$10-$G$10,50)/50)<=0,"",IF($G$10>200,0,CEILING.MATH($F$10-$G$10,50)/50))
Your Formula:
=IF($G$12>6,0,($F$12-$G$12))
Updated formula to suppress 0 or negative:
=IF(IF($G$12>6,0,($F$12-$G$12))<=0,"",IF($G$12>6,0,($F$12-$G$12)))
This structure keeps your original logic but hides the result if it ends up being zero or negative. Let me know if you'd prefer to display a custom message instead of leaving the cell blank!