# Help with an IF formula

#### visionate

##### New Member
I'm not the best with excel and I am trying to put together the the following formula, can someone let me know where I have gone wrong?

=IF(AF43<=AE10,AF43*0.15,IF(AND(AF43>AE10,AF43<=AE11),AF43*0.25,IF(AF43>AE11,AF43<=AE12),AF43*0.30,IF(AF43>AE12),AF43*0.35,"")))

What I need to achieve:

If A1 is between this value and this value, then times it by this percentage. Here is the table it applies to:

 £5000 - £10,000 times by 15% £10,001 - £20,000 times by 25% £20,001 - £30,000 times by 30% £30,001 + times by 35%

<tbody>
</tbody>

I have put these values in field in excel but it would be even better if they could be in the formula.

### Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

=AF3*LOOKUP(AF3,{0,5000,10001,20001,30001},{0,0.15,0.25,0.3,0.35})

try, I've assumed 0 for less than 5000, adjust accordingly

=LOOKUP(AF43,{0,5000,10001,20001,30001},{0,0.15,0.25,0.3,0.35})*AF43

Thanks works perfect

You're welcome!

Replies
2
Views
111
Replies
0
Views
161
Replies
9
Views
690
Replies
4
Views
392
Replies
2
Views
753

1,196,208
Messages
6,014,015
Members
441,802
Latest member
Aneurysm

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