+ Reply to Thread
Results 1 to 11 of 11

Linear sliding scale price increase?

  1. #1
    Registered User
    Join Date
    01-06-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    5

    Linear sliding scale price increase?

    Hey everyone

    What formula could I use to create a markup/price increase for the 100 000 items in my online store where markup decreases as prices increase:
    if buying price is <= $4, increase selling price x2
    if buying price is > than $15 increase selling price x1.6
    the markup for buying prices between $4 and $15 should gradually decrease from x2 to x1.6 in a linear way (not stepped).

    I know there are a few formulas of this kind in this forum, but I couldn't find anything that I could use to fit this requirement.

    thank you

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Linear sliding scale price increase?

    Welcome to the board.

    Row\Col
    A
    B
    C
    1
    Cost
    Price
    2
    $ 1.00
    $ 2.00
    B2: =MIN(2, MAX(1.6, 2 - (2 - 1.6) * (A2-4) / (15-4))) * A2
    3
    $ 2.00
    $ 4.00
    4
    $ 3.00
    $ 6.00
    5
    $ 4.00
    $ 8.00
    6
    $ 5.00
    $ 9.82
    7
    $ 6.00
    $ 11.56
    8
    $ 7.00
    $ 13.24
    9
    $ 8.00
    $ 14.84
    10
    $ 9.00
    $ 16.36
    11
    $ 10.00
    $ 17.82
    12
    $ 11.00
    $ 19.20
    13
    $ 12.00
    $ 20.51
    14
    $ 13.00
    $ 21.75
    15
    $ 14.00
    $ 22.91
    16
    $ 15.00
    $ 24.00
    17
    $ 16.00
    $ 25.60
    18
    $ 17.00
    $ 27.20
    19
    $ 18.00
    $ 28.80
    20
    $ 19.00
    $ 30.40
    21
    $ 20.00
    $ 32.00
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Linear sliding scale price increase?

    That's

    =MIN(maxMult, MAX(minMult, maxMult - (maxMult - minMult) * (cost - costMin) / (costMax - costMin))) * cost

  4. #4
    Registered User
    Join Date
    01-06-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    5

    Re: Linear sliding scale price increase?

    Amazing
    thank you!!

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Linear sliding scale price increase?

    You're welcome.

  6. #6
    Registered User
    Join Date
    01-06-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    5

    Re: Linear sliding scale price increase?

    Hi shg

    do you remember coming up with this formula?
    I've just tried to modify it a little to make some adjustments and noticed that it's not working if you deviate too much from these numbers and I can't figure out why.
    Example, if you change it to
    =MIN(5, MAX(2, 5 - (5 - 2) * (A2-3) / (10-3))) * A2
    then the prices don't increase linearly; after $7 the new prices go down and then up again after $12

    Does that make sense?

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Linear sliding scale price increase?

    ?
    A
    B
    C
    1
    maxMult
    minMult
    2
    5
    2
    3
    minCost
    maxCost
    4
    $ 3.00
    $ 10.00
    5
    6
    Cost
    Price
    7
    $ 1.00
    $ 5.00
    B7: =MIN(maxMult, MAX(minMult, maxMult - (maxMult - minMult) * (cost - minCost) / (maxCost - minCost))) * cost
    8
    $ 2.00
    $ 10.00
    9
    $ 3.00
    $ 15.00
    10
    $ 4.00
    $ 18.29
    11
    $ 5.00
    $ 20.71
    12
    $ 6.00
    $ 22.29
    13
    $ 7.00
    $ 23.00
    14
    $ 8.00
    $ 22.86
    15
    $ 9.00
    $ 21.86
    16
    $ 10.00
    $ 20.00
    17
    $ 11.00
    $ 22.00
    18
    $ 12.00
    $ 24.00

  8. #8
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Linear sliding scale price increase?

    Price is not a linear function of Cost. I mean, inside the bounded range -- it's something like

    Price = Cost * Multiplier

    Where Multiplier is actually a linear function of Cost, call it Cost * Coefficient

    Price = Cost * Cost * Coefficient = Cost^2 * Coefficient

    So that Coefficient is linear, but the Price is quadratic (it's actually more like Price = Cost^2 + A*Cost + B but that's not terribly germane to the point I'm making)

    So what you've got is a local maxima at Cost =7, because the margin is decreasing faster than the cost is increasing.

    See the attached chart to illustrate.
    Attached Files Attached Files
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  9. #9
    Registered User
    Join Date
    01-06-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    5

    Re: Linear sliding scale price increase?

    That's great help, thank you.

    Is there a way to make it linear inside the bounded range?

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Linear sliding scale price increase?

    A
    B
    1
    maxMult
    minMult
    2
    5
    2
    3
    minCost
    maxCost
    4
    $3.00
    $10.00
    5
    6
    Cost
    Price
    7
    $1.00
    $5.00
    8
    $2.00
    $10.00
    9
    $3.00
    $15.00
    10
    $4.00
    $15.71
    11
    $5.00
    $16.43
    12
    $6.00
    $17.14
    13
    $7.00
    $17.86
    14
    $8.00
    $18.57
    15
    $9.00
    $19.29
    16
    $10.00
    $20.00
    17
    $11.00
    $22.00
    18
    $12.00
    $24.00


    In B7:

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    01-06-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    5

    Re: Linear sliding scale price increase?

    looks like this is working
    thank you shg

+ 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] Sliding Scale
    By jmalia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2015, 09:02 PM
  2. [SOLVED] sliding scale
    By allgeef in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-04-2014, 12:13 PM
  3. sliding scale?
    By GardenGrow in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 03-30-2014, 08:50 PM
  4. [SOLVED] sliding scale???
    By GardenGrow in forum Excel General
    Replies: 6
    Last Post: 03-29-2014, 01:15 PM
  5. Sliding Scale Commission
    By rushbrooksharoon in forum Excel General
    Replies: 10
    Last Post: 06-25-2013, 09:07 AM
  6. Macro for sliding scale
    By Djinn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2012, 03:45 AM
  7. formulate the sliding scale
    By XCESIV in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2007, 07:03 PM

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