![]() |
Help on this formula
=SUM(N8:N9)-SUM(N20:N21)
If the results from the above formula are 0 or less than 0, how can I leave the results blank or at 0? |
=IF(SUM(N8:N9)-SUM(N20:N21)=0,"",SUM(N8:N9)-SUM(N20:N21))
-- HTH Bob Phillips "force530" wrote in message ... =SUM(N8:N9)-SUM(N20:N21) If the results from the above formula are 0 or less than 0, how can I leave the results blank or at 0? |
=MAX(SUM(N8:N9)-SUM(N20:N21),0)
-- Kind regards, Niek Otten Microsoft MVP - Excel "force530" wrote in message ... =SUM(N8:N9)-SUM(N20:N21) If the results from the above formula are 0 or less than 0, how can I leave the results blank or at 0? |
slight correction
=IF(SUM(N8:N9)-SUM(N20:N21)=0,"",SUM(N8:N9)-SUM(N20:N21)) -- HTH Bob Phillips "Bob Phillips" wrote in message ... =IF(SUM(N8:N9)-SUM(N20:N21)=0,"",SUM(N8:N9)-SUM(N20:N21)) -- HTH Bob Phillips "force530" wrote in message ... =SUM(N8:N9)-SUM(N20:N21) If the results from the above formula are 0 or less than 0, how can I leave the results blank or at 0? |
All times are GMT +1. The time now is 09:45 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com