... give you the correct nInitialBet for the values you specified. If you need to handle both nFixedProfit and nFixedUse, you can use a nested IF statement to check which variable is being used: =IF(nFixedProfit <= 28, 1.50 + FLOOR((nFixedProfit - 10) / 4, 1) * 0.50, IF(nFixedUse <= 50, ...