How to calculate variable amount based on total entered manually

mart_mrexcel

Active Member
Joined
Aug 23, 2008
Messages
296
Office Version
  1. 365
Platform
  1. Windows
  • End user is giving a manual Total Salary, then
  • The “Accommodation”, “Car Allowance” and “Basic” should automatically calculate based on the given formula as displayed in D3,E3,F4. How can i satisfy the formula equal to the variable that is entered manuall?

Book1
BCDEF
2
3This is Manual Entry ¤25% Of the Basic min 3,333 ¤10% of the Basic Max 1,500 ¤This is the Remaing Total of "Total Salary" minus the Accomodation & Car Allowance ¤
4WorkerTotal SalaryAccomodationCar AllowBasic
5Emp 122,000.00
Sheet1
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hello,

Book2
ABCDE
3This is Manual Entry ¤25% Of the Basic min 3,333 ¤10% of the Basic Max 1,500 ¤This is the Remaing Total of "Total Salary" minus the Accomodation & Car Allowance ¤
4WorkerTotal SalaryAccomodationCar AllowBasic
5Emp 1220004074.11629.616296.3
Sheet1
Cell Formulas
RangeFormula
C5C5=E5*25%
D5D5=E5*10%
E5E5=B5/1.35
 
Upvote 0
Hello,

Book2
ABCDE
3This is Manual Entry ¤25% Of the Basic min 3,333 ¤10% of the Basic Max 1,500 ¤This is the Remaing Total of "Total Salary" minus the Accomodation & Car Allowance ¤
4WorkerTotal SalaryAccomodationCar AllowBasic
5Emp 1220004074.11629.616296.3
Sheet1
Cell Formulas
RangeFormula
C5C5=E5*25%
D5D5=E5*10%
E5E5=B5/1.35
Thank You Hrayani, what about the Max and minimum, the transpo has a max of 1500 and that difference should be added to the basic. The same thing with Accomodation if the minimum is applied it should be deducted from the Basic. When i added it, i had circular reference message.
 
Upvote 0
This might be closer, although I confess I couldn't get it to work out 100% :unsure:

Book1
BCDEF
2
3This is Manual Entry ¤25% Of the Basic min 3,333 ¤10% of the Basic Max 1,500 ¤This is the Remaing Total of "Total Salary" minus the Accomodation & Car Allowance ¤
4WorkerTotal SalaryAccomodationCar AllowBasic
5Emp 122,000.004,100.001,500.0016,400.00
Sheet1
Cell Formulas
RangeFormula
D5D5=IF($C$5<=17999,3333,IF($C$5>=20250,($C$5-1500)/1.25*0.25,($C$5/1.35)*0.25))
E5E5=IF(((C5-D5)/1.1*0.1)>1500,1500,((C5-D5)/1.1*0.1))
F5F5=C5-SUM(D5:E5)
 
Upvote 0
Solution
Thank You Hrayani, what about the Max and minimum, the transpo has a max of 1500 and that difference should be added to the basic. The same thing with Accomodation if the minimum is applied it should be deducted from the Basic. When i added it, i had circular reference message.
You're welcome!
Yes you would get circular reference & that's obvious
If you add the difference to the basic salary then Accomodation will not be equal to 25% of the basic salary
 
Upvote 0
This might be closer, although I confess I couldn't get it to work out 100% :unsure:

Book1
BCDEF
2
3This is Manual Entry ¤25% Of the Basic min 3,333 ¤10% of the Basic Max 1,500 ¤This is the Remaing Total of "Total Salary" minus the Accomodation & Car Allowance ¤
4WorkerTotal SalaryAccomodationCar AllowBasic
5Emp 122,000.004,100.001,500.0016,400.00
Sheet1
Cell Formulas
RangeFormula
D5D5=IF($C$5<=17999,3333,IF($C$5>=20250,($C$5-1500)/1.25*0.25,($C$5/1.35)*0.25))
E5E5=IF(((C5-D5)/1.1*0.1)>1500,1500,((C5-D5)/1.1*0.1))
F5F5=C5-SUM(D5:E5)
Thank you Kevin that works great. Anyway may i ask what is the manual amount of 17999 & 20250 that you are checking in $C$5?
 
Upvote 0
Thank you Kevin that works great. Anyway may i ask what is the manual amount of 17999 & 20250 that you are checking in $C$5?
They seem to be the amounts (beyond which) that the percentages returned go a bit haywire - given that you're looking at a maximum amount in one cell and a minimum in another. Those figures would change if your 25% & 10% changed. A mathematician would be able to explain it better than me ;)
 
Upvote 0

Forum statistics

Threads
1,215,873
Messages
6,127,470
Members
449,384
Latest member
purevega

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