Calculating a Number from the very number it is based on

shah0101

Board Regular
Joined
Jul 4, 2019
Messages
118
Hello Experts,

I have a problem and need your help please. I need to bring total price of 8.91 to 12.00 but the problem is with 3% commercial cost and commission because it is calculated on the very same value which needs to be adjusted.

Is there any formula or similar to get around this please?

Below is just a summary for ease of understand. Actually ton of background calculations are involved in multiple sheets.

Thanks in Advance.

BELOW IS FIXEDTWO ITEMS CAN CHANGE
Trim Cost (A)$1.60$1.60CAN NOT CHANGE
Fabric Cost$2.99$5.16CAN ADJUST
Accessories Cost (B)$1.28$2.21CAN ADJUST
CM COST$2.96$2.99CAN NOT CHANGE
Commercial %3% OF A+B$0.08$0.08CAN NOT CHANGE
Total$8.91$12.04CAN NOT CHANGE
Commission %0$0.00$0.00CAN NOT CHANGE
TOTAL PRICE$8.91$12.00THIS IS TOTAL
 
Last edited by a moderator:
Quick Point about this . . . Not sure about the commercial % amt as you are trying to calc from the changed fields I went backwards mostly and used across the total of everything, but if I don't do it that way it gets more complicated . . .
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
This should be it IF you only want the 3% on the remainder (should be close)

Just change the Desired FOB and it should auto populate the rest . . .

Book1
HIJKLMN
99SUMMARYSUMMARY
100Factory Trim Cost1.6PART "C"Factory Trim Cost$1.60
101Fabric Cost2.99PART "A"Fabric Cost$5.57
102Accessories Cost1.28PART "B"Accessories Cost$2.39
103CM Cost / Pcs2.96CM Cost / Pcs$2.96
104Testing Cost / Pcs0Testing Cost / Pcs$0.00
105Commercial %3.00%0.1761Commercial %3.00%$0.29
106Commission %1.50%0.1350435Commission %1.50%$0.19
107Total9.1411435Total$13.00
1089.14FOB$13.00
109Desired FOB $13
Sheet2
Cell Formulas
RangeFormula
N100,N103N100=J100
N101N101=ROUND(J101*(DesiredFOB-SUM(N103:N106,N100))/SUM($J$101:$J$102),2)
N102N102=ROUND($J$102*(DesiredFOB-SUM(N103:N106,N100))/SUM($J$101:$J$102),2)
J105J105=SUM(J100,J101,J102)*I105
J106J106=(J108-(J108*I106))*I106
J107,N107J107=SUM(J100:J106)
N105N105=(DesiredFOB-SUM(N106,N104,N103))-((DesiredFOB-SUM(N106,N104,N103))/(1+$I105))
N106N106=DesiredFOB-(DesiredFOB/(1+$I106))
N108N108=SUM(N100:N106)
Named Ranges
NameRefers ToCells
DesiredFOB=Sheet2!$J$109N101:N102, N105:N106
 
Upvote 0
I mistakenly thought the commercial % was for the whole amount of all the rest of the values so I updated the formula for it . . . and removed his other columns.
Thank you @CSmith & @footoo // This is too much to take in for a novice like me. I will check and let you know tomorrow. Thanks again for your time and efforts.
 
Upvote 0
Writing the macro was much easier than creating the formulas. :)
 
Upvote 0
Thank you @CSmith & @footoo // This is too much to take in for a novice like me. I will check and let you know tomorrow. Thanks again for your time and efforts.
I'm not whether this was mentioned but you need to create a Name : DesiredFOB referring to J109.
Just noticed it was mentioned.
 
Upvote 1

Forum statistics

Threads
1,215,132
Messages
6,123,227
Members
449,091
Latest member
jeremy_bp001

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