A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Formulas are interpreted from left to right and a simple way to understand IF clause is to insert line breaks.
=IF(AND(B5="x",C5>=100), 1.5,
IF(AND(B5="y",C5<100), 1.4,
IF(AND(B5="x",C5>=100), 1.3,
IF(AND(B5="y",C5<100), 1.2,
1.1))))
If the 1st IF becomes TRUE the result is 1.5 otherwise the other IF comes into affect.
But in this case the 3rd IF will never be TRUE, because it's the same same condition.
The same issue exists for the 2nd IF and the 4th IF, both have the same condition.
When we change the formula to this
=IF(AND(B5="x",C5>=100), 1.5,
IF(AND(B5="y",C5>=100), 1.4,
IF(AND(B5="x",C5<100), 1.3,
IF(AND(B5="y",C5<100), 1.2,
1.1))))
The result might be what you expect:
Andreas.