|
The best way to
achieve this, is to construct a nested if function.
IF (logical test,
value if true, value if false)
If we select the
cell under the Janet sales columns in the bonus row (cell E18)
we can enter the IF function in the formula bar. First,
let us define the structure of our nested IF function.
IF(E16<5000,E18*0.02,
This part of the
IF function means that, if the value in E16 (total sales) is
less than 5000 dollars, the value displayed for a bonus will be
the value in cell E16 multiplied .02. The next argument in the
IF function should be a nested IF function with the next
condition to test.
IF(E16<5000,E18*0.02, IF(E16<10000,E16*0.05,
Here we have
implemented the second condition (sales less than 10000) for our
bonus structure. We can continue building or IF function in a
similar way for the rest of the bonus conditions.
IF(E16<5000,
E16*.02,IF(E16<10000, E16*.05, IF( E16<20000, E16*.1, E16*.15)))
The last part of
this IF function tests if the value in cell E16 is less
than 20000. If it is, it will be multiplied by .1 to get the
bonus. Else, if it is greater or equal to 20,000 it will be
multiplied by .15 (15%).
|