# 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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

#### 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)``

Replies
3
Views
33
Replies
11
Views
140
Replies
0
Views
73
Replies
3
Views
52
Replies
3
Views
525