In: Computer Science
IF function in excel is used to test a condition and return a value if it is true and return another value if it is false.
So, now let us see the syntax of IF function,
=if(logical_test,true_value,false_value)
The logical test and the values are separated by comma
Now in this question, the logical test is to check whether the value in cell B8 is greater than or equal to 1000000.
=if(B8>=1000000
Next we have to give the return value if the condition is true. Here if the condition is true then the value in B8 is multiplied by 0.18
=if(B8>=1000000,B8*0.18
Next comes the return value if the condition is false, here we have to multiply B8 by 0.10
=if(B8>=1000000,B8*0.18,B8*0.10)
We have to calculate this value in cell B15. So the above formula should be entered in cell B15
I have provided the sample output with sample values.