If I understand what you want correctly, put this formula in cell D5 and copy it across to H5...
=IF($C5>SUM(D4:$H4),D4,MAX(0,D4+$C5-SUM(D4:$H4)))
If I understand what you want correctly, put this formula in cell D5 and copy it across to H5...
=IF($C5>SUM(D4:$H4),D4,MAX(0,D4+$C5-SUM(D4:$H4)))
Last edited by Rick Rothstein; 05-27-2013 at 11:48 PM.
Bookmarks