+ Reply to Thread
Results 1 to 20 of 20

Calculating a minimum price based on variables

  1. #1
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Calculating a minimum price based on variables

    Hi,

    I am working on a spreadsheet to work out a minimum sales price based on starting with a cost price, allowing for RRP, Carriage charges (which are dependent upon RRP) and a fee based on the final sales price. The final sales price should be a minimum of 6% gross margin.

    I am struggling to build the formula that will get me to the minimum selling price (with the 6% gross margin).

    Enclosed is a brief spreadsheet example. As you can see its in order to set prices but not go below an acceptable level after allowing for VAT, Carriage and fees.

    The Yellow fields can be changed. The grey cells are currently auto calculated and the red highlighted cell is the one I'm struggling with.

    If anyone could point me in the right direction I would be very grateful.

    Paul
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Calculating a minimum price based on variables

    This will actually take VBA if I understand the requirement. The price you want to sell at has to cover the Amazon fees. Yet the Amazon fees are calculated based on the price you sell at. This is called a circular reference. Whatever formula you come up in cell P3 will depend on the contents of cell P3.

    If I interpreted how things should be applied, the UDF in this workbook should work. It is called SellPrice and it is invoked with the following arguments.
    SellPrice (TradePrice , MyPrice, Margin, VAT, Amazon Fee)
    TradePrice and MyPrice are entered as currency
    Margin, VAT and Amazon Fee are entered as decimals (6% = 0.06).
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Calculating a minimum price based on variables

    I know little of most of these terms, so I interpreted your request as needing a formula that would give you the price that, if made the selling price (J3), would allow Q3 (profit) to equal N3 (minimum required). Working with that understanding, I did some algebra and came up with the following:

    =IF(B3>=125/6,(-B3-6.5)/(M3-(41/60)),(-B3-3.13)/(M3-(41/60)))

    Again, though, I'm just doing the math, I might be completely misunderstanding the goal. If I'm wrong, dflak is your man/woman/airplane(?).

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Calculating a minimum price based on variables

    I blew it. I needed iteration to make the price come out right. I struggled with the math and wound up with a solution that oscillated around the solution. So I dropped back and did a brute force methodology.

    This will work, but I will try for the elegant solution on Monday.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    Quote Originally Posted by dflak View Post
    This will actually take VBA if I understand the requirement. The price you want to sell at has to cover the Amazon fees. Yet the Amazon fees are calculated based on the price you sell at. This is called a circular reference. Whatever formula you come up in cell P3 will depend on the contents of cell P3.

    If I interpreted how things should be applied, the UDF in this workbook should work. It is called SellPrice and it is invoked with the following arguments.
    SellPrice (TradePrice , MyPrice, Margin, VAT, Amazon Fee)
    TradePrice and MyPrice are entered as currency
    Margin, VAT and Amazon Fee are entered as decimals (6% = 0.06).
    This is really close but it doesn't seem to include the carriage costs. Probably my fault for not explaining properly. I like the idea of the VBA but I'm not great in this area to be able to develop it.

    Thank you for the pointer though! Very much appreciated.
    Paul

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Calculating a minimum price based on variables

    Doubling the M in my original formula returns a selling price that would return a 6% profit after Amazon fees are removed. That would be:

    =IF(B3>=125/6,(-B3-6.5)/(2*M3-(41/60)),(-B3-3.13)/(2*M3-(41/60)))

    Maybe that helps? It would help to know what value you expect in P3 on your sample if everything works correctly.

  7. #7
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    Quote Originally Posted by dflak View Post
    I blew it. I needed iteration to make the price come out right. I struggled with the math and wound up with a solution that oscillated around the solution. So I dropped back and did a brute force methodology.

    This will work, but I will try for the elegant solution on Monday.
    Please ignore earlier reply and thank you again. I do believe its close and love the VBA approach. I'm terrible at VBA (must be my age) and my only comment is that it doesn't seem to include the carriage costs and changing the "Selling Price" (yellow highlighted cell) seems to impact the red highlighted cell which in theory should return the optimal selling price after allowing for item cost, carriage costs (F3), net VAT costs (K3) and the required margin (M3).

    Very grateful for your input and help across the pond.

    Paul

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Calculating a minimum price based on variables

    It would help if you can walk us through the calculation.

    As for age, I'm pushing 68. VBA is a relatively new trick for this old dog .

  9. #9
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    Quote Originally Posted by CAntosh View Post
    Doubling the M in my original formula returns a selling price that would return a 6% profit after Amazon fees are removed. That would be:

    =IF(B3>=125/6,(-B3-6.5)/(2*M3-(41/60)),(-B3-3.13)/(2*M3-(41/60)))

    Maybe that helps? It would help to know what value you expect in P3 on your sample if everything works correctly.
    Thank you for the input. The first algebraic equation has worked and provides a selling price that achieves the net 6% Margin - Thank you!! I'm intrigued by the doubling of M???

    Basically my aim is to identify the selling price of an item that after allowing for trade cost, VAT, Carriage costs and 15% fees still achieves a 6% profit margin

    Thank you again!!

    Paul

  10. #10
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Calculating a minimum price based on variables

    Glad I could help! I wasn't sure if the 6% Amazon fees should be deducted prior to the profit determination. Doubling the M allows for 6% for Amazon and 6% for the profit column. I was trying to mix my initial understanding of the question with what I was getting from dflak's work in case I wasn't interpreting the goal correctly. I'm glad it wasn't necessary.

  11. #11
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    Quote Originally Posted by dflak View Post
    It would help if you can walk us through the calculation.

    As for age, I'm pushing 68. VBA is a relatively new trick for this old dog .
    You put me to shame. I'm 54 so perhaps I need to go back to school.....!

    Ok, so here is the calculation..

    Selling Price needs to achieve a 6% Gross Profit Margin) after deducting the following:

    Trade Cost of Item (excluding VAT)
    Carriage costs (excluding VAT)
    15% Fees (no VAT)
    Net VAT due (which is 20% of the trade cost plus 20% of the net carriage cost, deducted from the VAT ude on the selling price - calculated as selling price divided by 6)

    The algebraic equation from CAntosh does seem to provide the correct figure so would love to understand how to do this in VBA -
    =IF(B3>=125/6,(-B3-6.5)/(M3-(41/60)),(-B3-3.13)/(M3-(41/60)))

    Thank you so much for your time. I have been battling with this for some months and have been amazed by such generous responses.

    Its way past nighttime for me over here but will check back tomorrow.

    Thank you again!!
    Paul

  12. #12
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    Hi again,

    I thought I had it but now not quite. Please could you take another look at the enclosed. I've corrected a couple of small calculation issues around VAT (UK Sales Tax) and now the equation doesn't quite work and I cannot see how/why. Based on what I believe if I purchase the enclosed item for £10 (plus 20% VAT), pay carriage fees of £2.61 (plus 20% VAT), sell the item for £21.06, paying £3.51 VAT and Amazon fees of £3.16, I would then make a profit of £1.78 which equates to a margin of 8.46%.

    Therefore would it be possible to re-check the equation so that I can identify the 6% margin please?

    Updated sheet enclosed.

    Thank you again.
    Paul
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    .this time with the attachment.....................
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    I have spoken to my accountant who has said I'm over complicating things and to just look at everything excluding VAT.

    Therefore I have started to tweak the excel calculation/ equation but can't quite get it right. On the enclosed spreadsheet the red highlighted cell (where the equation sits) should result in £21.06 using the example but I can't quite see the issue with the math?

    Please could you double check?

    Many thanks.
    Pau

  15. #15
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    I have spoken to my accountant who has said I'm over complicating things and to just look at everything excluding VAT.

    Therefore I have started to tweak the excel calculation/ equation but can't quite get it right. On the enclosed spreadsheet the red highlighted cell (where the equation sits) should result in £21.06 using the example but I can't quite see the issue with the math?

    Please could you double check?

    Many thanks.
    Paul
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    To recap, I am attempting to find the selling price necessary to achieve the margin set in cell B13 based upon cost price, fees and carriage costs.

    I have the following formula which originated kindly form CAntosh but now that I have tweaked the file to exclude VAY (UK Sales Tax) the calculation doesn't quite work

    =IF(B4>=125,(-B4-5.42)/(B13-(41/60)),(-B4-2.61)/(B13-(41/60)))

    Please would someone be kind enough to point me in the right direction?

    Many thanks in advance.
    Paul
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Calculating a minimum price based on variables

    Give this a shot in B14, I think it's producing the correct result:

    =(-B2+(B2*B3)-B6)/((5/6)*B13-(5/6-B7))

    I don't know how often the formula for carriage costs will change, but if you want, we can use an IF formula to replace B6 in the formula (like with my initial formula), or you can just leave B6 as the variable. Again, though, I have little idea how any of these factors work, I'm just doing the algebra, so let me know if I'm missing something.

    EDIT: Please note that my formula is based on the version of your template in post #15 (see attached). For different templates, adjust as needed.
    Attached Files Attached Files
    Last edited by CAntosh; 03-27-2017 at 04:51 PM.

  18. #18
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    It works!! Thank you so much.

    I like the idea of using an IF statement re carriage (in case prices change). Currently we expect them to be £3.13 (£2.61 ex-VAT) or £6.50 (5.42 ex-VAT) for most of this year but being able to accommodate different values here could be useful if that is possible.

    This is extremely useful thank you so much for your efforts and help.

    Paul

  19. #19
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Calculating a minimum price based on variables

    My pleasure! If you want to substitute B6 out of the equation, you can replace B6 in the post 17 formula (again using the template from posts 15 and 17) and substitute the terms down to:

    =(-B2+(B2*B3)-(IF(1.92*(B2-(B2*B3))>39.99,6.5,3.13)/6*5))/((5/6)*B13-(5/6-B7))

    Which should generate identical returns to my formula in post 17 while referring only to your yellow/variable cells. If the IF formula for carriage costs changes regularly, it might be easier to stick with the solution in post 17, because you'd just need to update B6 rather than updating the formula above, but that's up to you and your users. Based on current information, the two formulas should return identical results.

  20. #20
    Registered User
    Join Date
    04-24-2007
    Posts
    32

    Re: Calculating a minimum price based on variables

    Excellent - thank you so much for all your help!

    Best wishes.
    Paul

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Excel Cell To Show Product Price But With A Minimum Price
    By icemoose in forum Excel General
    Replies: 6
    Last Post: 05-04-2016, 06:46 AM
  2. Forecast commodity price cycle - Time and price variables
    By Carlito Riego in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2015, 09:53 AM
  3. Calculating a total price based on variables in a separate chart
    By Pvals in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2013, 01:58 PM
  4. Replies: 1
    Last Post: 07-24-2013, 12:13 PM
  5. Calculating Asking Price Based on Cost of Goods Sold
    By buddy5954 in forum Excel General
    Replies: 13
    Last Post: 04-14-2011, 02:34 AM
  6. Calculating based on multiple price
    By premmi in forum Excel General
    Replies: 3
    Last Post: 05-16-2005, 01:52 PM
  7. How to calcuale a selling price based on a minimum gross margin
    By dougie8rown in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-10-2005, 08:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1