Help with an IF formula

visionate

New Member
Joined
Dec 21, 2016
Messages
5
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:

[TABLE="align: left"]
<tbody>[TR]
[TD]£5000 - £10,000
[/TD]
[TD]times by 15%
[/TD]
[/TR]
[TR]
[TD]£10,001 - £20,000
[/TD]
[TD]times by 25%
[/TD]
[/TR]
[TR]
[TD]£20,001 - £30,000
[/TD]
[TD]times by 30%
[/TD]
[/TR]
[TR]
[TD]£30,001 +
[/TD]
[TD]times by 35%
[/TD]
[/TR]
</tbody>[/TABLE]






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

Look forward to your help.
 
Try this instead:

=AF3*LOOKUP(AF3,{0,5000,10001,20001,30001},{0,0.15,0.25,0.3,0.35})
 
Upvote 0
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
 
Upvote 0

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top