J Jellyroll1970 New Member Jul 5, 2010 #1 Basic formula - =SUM(C7-D7)...ok easily accomplished but I don't want a negative number to show up. If the sum D7 from C7 is less than 0 it should go no lower than 0.
Basic formula - =SUM(C7-D7)...ok easily accomplished but I don't want a negative number to show up. If the sum D7 from C7 is less than 0 it should go no lower than 0.
K kchiba Active Member Jul 5, 2010 #3 sorry, I think you are saying that fi C7 > D7 then 0 ok try this =if(Sum(C7-D7)<0,0,Sum(C7-D7))
sorry, I think you are saying that fi C7 > D7 then 0 ok try this =if(Sum(C7-D7)<0,0,Sum(C7-D7))
Hui Excel Ninja Staff member Jul 6, 2010 #5 You don't need the Sum to do the maths, try =if(C7-D7<0,0,C7-D7) Code: or to simplify even more =(D7<C7)*(C7-D7)
You don't need the Sum to do the maths, try =if(C7-D7<0,0,C7-D7) Code: or to simplify even more =(D7<C7)*(C7-D7)