@help_please, one possible cause is that in your code Combined or Combined_S variables are ARRAYS (not a NUMBER).
In such a case you should select a single value from the array (using some function like LastValue(), etc.)
If this is the cause of your problem, please review the IIF() documentation - READ IT ALL with attention, noting the following paragraph (I put in bold the array part).
When all arguments are scalars (numbers) then resulting value is also a scalar (number). When any of arguments is an array then the function returns an array.