Forum Discussion
Multiply cell with X until positive
- Oct 16, 2021
Try this formula.
=IF(G$4>F9,$B8*(QUOTIENT(G$4,$B8)+1),0)
I entered it in row 8 of your spreadsheet and it seems to work. This is basically your original IF formula with the needed multiplier added in. That multiplier of the MOQ is determined by using the QUOTIENT function to divide the current projection projections by MOQ, getting the quotient (the number without remainder) and adding 1...seems to work across that row all the way. Let me know if there's some situation it doesn't handle.
Try this formula.
=IF(G$4>F9,$B8*(QUOTIENT(G$4,$B8)+1),0)
I entered it in row 8 of your spreadsheet and it seems to work. This is basically your original IF formula with the needed multiplier added in. That multiplier of the MOQ is determined by using the QUOTIENT function to divide the current projection projections by MOQ, getting the quotient (the number without remainder) and adding 1...seems to work across that row all the way. Let me know if there's some situation it doesn't handle.