标签: excel-formula
Last column(s) should adapt(D6 & E6), so the sum doesn't exceed value of B2
答案 0 :(得分:1)
将此公式放入B6并复制:
=IF(SUM($A$6:A$6)+(B4*B5)>=$B$2,$B$2-SUM($A$6:A$6),B4*B5)