Solver Type Formula or Chicken Egg Query

daleholden

Board Regular
Joined
Sep 22, 2002
Messages
243
OK, guys, I have a headache trying to work this out and need some help.


I have a product that costs me £100 looking at the table to the right I want to make a profit that fits the table. But the profit is it to include eBay FVF & PayPal Fee. So we are looking at a Chicken & Egg scenario. I need a goal seeker kind of formula that can workout what to charge as an eBay Sale Price but that includes the Total Cost Price eBay FVF and PayPal Fee.
I am sure there is a way around it but cannot see how to do it.


For this PayPal would be 2.9% + 0.20p
Ebay FVF would be 9%


So I am looking for a formula that will work out an eBay Sale Price that gives me £20 profit and works out the C2,D2 and E2 as a total price.


Hope that makes sense.


PS I want to apply this formula to 1000's of entries to fit the table opposite.

See worksheet here
 
Maybe I'm missing something, but I didn't find that it needed an iterative calculation at all. Consider:

ABCDEFGHIJKLMNOPQRST
1Product PriceVat Unit PricePayPal %eBay FVF %Total PriceeBay Sale PriceProfitGS ProfitVATPaypal %eBay FVF %CGS FromCGS ToProfit
2236.004.72240.729.1433.28283.13308.13252%2.90%9%1505
35110010
4PayPal Fixed10120020
50.220130025
630140035
740150050
850175065
9701100099
1010012000125
1120013000150
1230014000175
1340015000200
1450016000225
1560017000250
1670018000300
1780019000325
18900110000350

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet5

Worksheet Formulas
CellFormula
B2=A2*L2
C2=A2*(1+L2)
D2=G2*M2+M5
E2=N2*G2*1.2
F2=C2+D2+E2
G2=(H2 +M5+C2)/(1-M2-N2*1.2)
H2=VLOOKUP(A2,$Q$2:$S$18,3)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Put your price in A2, then the C2 formula finds the cost with VAT added, then the H2 formula finds the desired profit from the table, then the G2 formula determines the price needed to obtain that profit, including all the other costs. The other formulas are left intact so that you can see the various costs. If you add up C2, D2, E2, and H2, you get G2. But the G2 formula does not reference C2, D2, or E2.
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Actually, that algorithm (at least my implementation of it) is flawed.



Try the following, returning to the original design of your Excel file (remove the new column F labeled "total price"):

Code:
B2, vat:    =ROUND(A2*20%,2)
C2, cost:   =ROUND(A2+B2,2)
D2, paypal: =ROUND(F2*2.9%+0.2,2)
E2, EBay:   =ROUND(F2*9%,2)
F2, price:  =ROUNDUP((C2+G2+0.2)/(1-2.9%-9%),2)
G2, intended profit:
  =VLOOKUP(ROUNDUP((C2+VLOOKUP(C2,$P$2:$R$18,3)+0.2)/(1-2.9%-9%),2),$P$2:$R$18,3)

Essentially, I incorporated my assumption of a two-stage calculation: the first stage estimates price, using the profit lookup based on CGS; and the second stage determines profit, using the lookup based on the first stage value.

Experiment with that. My experiment seem to work, so far.


Hi that is looking good can you edit E2 =ROUND(F2*9%,2) to =ROUND(F2*9%,2)*1.2 this is to add VAT on. I have tried adding it and it breaks it. If it is easier I have provided a link that allows editing the sheet.

Also when i move it my main sheet which is more complicated due to PayPal & Ebay FVF having lookup tables would you be able to assist me to implement your solution please? I would provide you a link in PM i will do all the work but just need a guru to oversee what i am doing is correct.
 
Upvote 0
I would provide you a link in PM i will do all the work but just need a guru to oversee what i am doing is correct.

All discussion needs to be in the open boards please, in accordance with the rules.
 
Upvote 0
All discussion needs to be in the open boards please, in accordance with the rules.
Apologies i did not intend to break rules i am happy to discuss here but did not want to get an open link to a private working workbook.
 
Upvote 0
HI Eric

Hi that is looking good can you edit E2 =ROUND(F2*9%,2) to =ROUND(F2*9%,2)*1.2 this is to add VAT on. I have tried adding it and it breaks it. It makes the selling price wrong, please can you make it work so i can add 20% VAT on to E2?

Dale
 
Upvote 0
I'm a little confused? The formula I had in E2 had the 1.2, but not the ROUND. If you want to include the ROUND, the formulas would look something like:


ABCDEFGHIJKLMNOPQRST
1Product PriceVatUnit PricePayPal %eBay FVF %Total PriceeBay Sale PriceProfitGS ProfitVATPaypal %eBay FVF %CGS FromCGS ToProfit
22364.72240.729.1433.28283.14308.13252%2.90%9%1505
3230.4623.461.163.5928.2133.2155110010
452001045304186691.956181.956406.95225PayPal Fixed10120020
54448.88452.8817.1162.96532.95582.94500.220130025
61200024012240423.281575.614238.8814588.8835030140035
740150050
850175065
9701100099
1010012000125
1120013000150
1230014000175
1340015000200
1450016000
1560017000250
1670018000300
1780019000325
18900110000350

<tbody>
</tbody>
Sheet3

Worksheet Formula
s

CellFormula
B2=ROUND(A2*$L$2,2)
C2=ROUND(A2*(1+$L$2),2)
D2=ROUND(G2*$M$2+$M$5,2)
E2=ROUND($N$2*G2*1.2,2)
F2=C2+D2+E2
G2=ROUND((H2+$M$5+C2)/(1-$M$2-$N$2*1.2),2)
H2=VLOOKUP(A2,$Q$2:$S$18,3)

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi Eric

A few people have been in tweaking the sheet so not sure! All i needed was to add 20% VAT to E2 when I tried adding *1.2 to your original forumula it didn’t seem to work.
I just want it to work with adding the 20% VAT on E2


I'm a little confused?
 
Last edited by a moderator:
Upvote 0
So again, I'm a bit confused. Do the formulas from post 16 do what you want? If not, why not?
 
Upvote 0
HI Eric

It is not working as it should the sale price is £1505.45 so looking to the table it should make £125 profit.
The formula is assuming it is £1000 so giving a £99 not sure if you can fix it!



Product PriceVat Unit PricePayPal %eBay FVF %Total PriceeBay Sale PriceProfit
£1,000.00£200.00£1,200.00£43.86£162.59£1,406.45£1,505.45£99.00

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Apparently I misunderstood. I thought the profit you wanted was based on the cost of the product, not the final selling price. Yes, if you want to do it that way, it could be an iterative process. However, you could pre-calculate the inflection points (the places where the profit jumps from one tier to the next), store them in a table, and use the table. For example:

Excel 2012
ABCDEFGHIJKLMNOPQRST
1Product PriceVatUnit PricePayPal %eBay FVF %Total PriceeBay Sale PriceProfitGS ProfitVATPaypal %eBay FVF %Inflection pointCGS FromCGS ToProfit
21000200120044.73165.841410.571535.5712520%2.90%9%11505
3316.237.21.625.3144.1349.135325110010
4326.438.41.836.0846.3156.3210PayPal Fixed6410120020
51333266.61599.658.16215.851873.611998.611250.212720130025
61334266.81600.859.04219.131878.972028.9715019530140035
725940150050
831850175065
9486701100099
1063710012000125
11133420013000150
12203330014000175
13273140015000200
14343050016000225
15412860017000250
16482670018000300
17550480019000325
186202900110000350
19

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B2=ROUND(A2*$L$2,2)
C2=ROUND(A2*(1+$L$2),2)
D2=ROUND(G2*$M$2+$M$5,2)
E2=ROUND($N$2*G2*(1+$L$2),2)
F2=C2+D2+E2
G2=ROUND((H2+$M$5+C2)/(1-$M$2-$N$2*(1+$L$2)),2)
H2=VLOOKUP(A2,$P$2:$S$18,4)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



If you ever want to change the profit table, you'll need to recalculate the inflection points. To do so, just use the Goal Seek. For example, to calculate the second tier, I just put 5 in H2 (overriding the formula), then started Goal Seek, setting G2 to 50 by varying A2. The result was 31.62531, which I rounded up to 32. Anything with a cost below 32 would result in a final selling price under 50 with a profit of 5, so therefore anything above that would be in the next tier at the next profit level.

Hopefully, I've got it right this time!
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,411
Members
448,894
Latest member
spenstar

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