=IF(B2=1,IF(C2>=40,100,IF(C2>25,75,IF(C2>15,50,0))),IF(B2=0.75,IF(C2>=40,80,IF(C2>25,65,IF(C2>15,35,0))),IF(B2=0.5,IF(C2>=40,60,IF(C2>25,40,IF(C2>15,20,0))),0))) With each IF function, we will test if the Working hours (B2) are: Equal to : 1 0.75 0.5 IF one of the values turns to be true, then we will be test if: The sales Value is larger or equal to 40; If false, the sales value larger than 25 (and automatically lower than 40 since the previous statement was false); If false, the sales value larger than 15 (and automatically lower than 25 since the previous statement was false); If false, the value will be 0; The same result can be achieved in an easier way using the “IFS” function – IFS is a nested IF function which allows for multiple tests and values if TRUE only – which means that we have to accompany it with an IFERROR function, in the eventuality that the test will not be true. =IFS(logical_test1, value_if_true1, logical_test2, value_if_true2, …) The final formula will look like this: