# Less/Greater than Formula Question

#### pmjewett

##### New Member
Hi All,

I'm preparing a sales bonus spreadsheet but am having a little trouble with the syntax of having multiple formulas in my formula. I'm calculating the bonus our reps will get based on the percentage of growth on their account totals from 1 year to the next.

Here's what I'm ultimately trying to do:

Bonus levels:
3% growth = 5% of the net growth amount (\$1000 growth=\$50 bonus)
5% growth = 7.5% of the net growth amount (\$1,000 growth=\$75 bonus)
7% growth = 9% of the net growth amount (\$1,000 growth= \$90 bonus)
10% growth = 15% of the net growth amount (\$1,000 growth=\$150 bonus)
15% growth = 20% of the net growth amount (\$1,000 growth=\$200 bonus)
<!--EndFragment-->

I've accomplished the first growth calculation in the results cell with the following:
IF(AND(F6>0.03=TRUE,F6<0.05=TRUE)*((E6-D6)*0.05),0)

But I need to perform the other calculations as well...where do I add the additional calculations in the above formula? ie., F6>0.05=TRUE,F6<0.07=TRUE)*((E6-D6)*0.0750
F6>0.07=TRUE,F6<0.10=TRUE)*((E6-D6)*0.09
F6>0.10=TRUE,F6<0.15=TRUE)*((E6-D6)*0.15
IF(F6>=0.15,((E6-D6)*0.20)

Thanks!

### Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

#### macness

##### New Member
Make yourself a lookup table like this

0.03 0.05
0.05 0.08
0.07 0.09
0.10 0.15
0.15 0.20

Then you can use a vlookup to get your values like this:
Code:
``=VLOOKUP(D1,\$A\$1:\$B\$5,2,TRUE)``

The range A1:B5 describes the lookup table

Then you can apply it VERY easily. For example. here are the results if I just place the percentages (the results of the percentage to use are on the right)

0.03 0.05
0.04 0.05
0.049 0.05
0.05 0.075

In your case you would do
Code:
``=(E6-D6)*VLOOKUP(D1,\$A\$1:\$B\$5,2,TRUE)``

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,168,031
Messages
5,856,937
Members
431,841
Latest member
jaybeem

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back