Clever formula

kellta

New Member
Joined
Nov 24, 2014
Messages
20
Hello

Can anyone help me write a single formula that will solve for the total fee to be deducted given this fee card:

First 100 - 1.25%
Next 200 - 1.00%
Next 400 - 0.75%
Balance above 700 - 0.50%


I have only been able to do it so far using a range of cells.

Many thanks
Tom
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Both gaz_chops and Andrew Poulsom's ideas

Code:
=LOOKUP(A1,{0,100,300,700},{0,1.25,3.25,6.25})+(A1-LOOKUP(A1,{0,100,300,700}))*LOOKUP(A1,{0,100,300,700},{0.0125,0.01,0.0075,0.005})

=SUMPRODUCT(--(A1>{0;100;300;700}),(A1-{0;100;300;700}),{0.0125;-0.0025;-0.0025;-0.0025})
 
Upvote 0
Just in case - It seems you missed my answer (or at least not commented on it), while I still think what I originaly posted on first page of this thread:
Code:
=if(a1<=100,a1*1.25%,if(a1<=300,(a1-100)*1%+1.25,if(a1<=700,(a1-300)*0.75%+3.25,(a1-700*0.5%+6.25))))
follows the right pattern.

of course 1.25 in second if is 1.25%*100, 3.25 in second if is 1.25%*100+1%*200, and final 6.25 is 1.25%*100+1%*200+0.75%*400
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,676
Members
449,463
Latest member
Jojomen56

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