This is really a maths question... calc a % fee to charge based on a number that is only found when you take away the fee... :/

momentumons

Board Regular
Joined
Mar 30, 2020
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
Hello! Can you help?

I have a fee table that is a sliding scale like the below:

IF X is between:Fee applied
0$20$2
$21$502%
$51$1001%
$100+0.5%


The fee is a sliding scale based on "X". But X can only be found once the fee has been taken out.

So if my total project budget is $81 (this is X + fee), how do I write up a formula to work out what X & the fee are so it will auto update every time I change the total.

Does that make sense? :)

So my formula needs to return:

Total (Incl Fees)$ 81.00
Fees?
X?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,
I'll let you test it, as its probably not perfect, but it might get you close ..:

Excel Formula:
IF(C4-C4*0.005>100,C4*0.005,IF(C4-C4*0.01>50,C4*0.01,IF(C4-C4*0.02>19.6,C4*0.02,2)))

The issue in your range is that you have dead spots (ie. what if X is 20.5 ? or 100.75 ?) so I've generalised a bit.

I've also assumed if X>20, rather than 21 etc..

cheers
Rob
 
Upvote 0
Can you give some sample results?

Consider the following

T202209a.xlsm
ABC
6TotalXFee
72220.002.00
88179.801.20
92524.510.49
106059.110.89
11120118.811.19
12
1a
Cell Formulas
RangeFormula
B7:B11B7=IF(A7<=22,A7-2,A7/(1+LOOKUP(A7,{22.01;50.762;101.01},{0.02;0.015;0.01})))
C8:C11C8=A8-B8
 
Upvote 0
Sure, I was within 0.01 with my original formula (as I knew it wasn't perfect), except for the <20 which was an error on my part.

So I've tweaked it to use this new formula : (assuming C4 was my total).

Excel Formula:
=IF(C4/1.005>100,C4-C4/1.005,IF(C4/1.01>50,C4-C4/1.01,IF(C4/1.02>21.57,C4-C4/1.02,2)))

To give you these results: Let me know if its suitable for you.

zombies.xlsx
CDEF
3TotalXFee
42220.002.00
58180.200.80
62524.510.49
76059.410.59
8120119.400.60
Sheet2
Cell Formulas
RangeFormula
E4:E8E4=+C4-F4
F4:F8F4=IF(C4/1.005>100,C4-C4/1.005,IF(C4/1.01>50,C4-C4/1.01,IF(C4/1.02>21.57,C4-C4/1.02,2)))
 
Upvote 0
Solution
Thank you! I so appreciate your brain power on this. I will play around with this.. but I can also be more helpful with my instructions.

The issue is - my sliding sale fees are to be applied to the project budget ("X"). This was working fine with a normal IFAND formula. However, now I get TOTAL budgets that are to include GST and fees... so I need to start with that total, take off GST AND take off fees to determine the project budget... :/

So if my total budget is $100 - GST = $90. How do i then work out what the fees are and what the project budget is from that $90...

The total budget could be any number under the sun so can't really do a look up table.

See below. The number in green will change every project.... what formulas need to replace the ?'s to get fees and project budget?
 

Attachments

  • Mr Excel Screen Grab.png
    Mr Excel Screen Grab.png
    30 KB · Views: 4
Upvote 0
you just put my formula in your cell B14, and then change my references from C4 to B13 ?

Rob
 
Upvote 0
Ah yep! You got it @RobP !! I just couldn't wrap my head around that but that's it! I've played around with it and it's working! Thanks so much :)
 
Upvote 0

Forum statistics

Threads
1,215,410
Messages
6,124,756
Members
449,187
Latest member
hermansoa

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