+ Reply to Thread
Results 1 to 3 of 3

List price and Discount Manipulator to Get the Target Net price

  1. #1
    Registered User
    Join Date
    11-09-2016
    Location
    LONDON
    MS-Off Ver
    2011 V14.4.8
    Posts
    2

    Lightbulb List price and Discount Manipulator to Get the Target Net price

    Hi All,

    Im new to macro excel and i tried to write a code but i cant make it work. Please help me.

    I am trying to do a macro that calculates the nearest discount to match the Net Price or to match the Target Net Price

    Example
    Given :
    LP= List price = 2345.0900
    NP=Net price = 1999.8000
    Discount = ROUND ((LP-NP )(LP/100),4)
    Discount = 14.7240

    **Target Net Price = 1999.8000

    Reverse calculation;
    Given:
    LP = List Price = 2345.0900
    D = Discount = 14.7240
    NET PRICE = round (LP-(LP*(D/100)),4)
    NET PRICE = 1999.7989
    Which does not satisfy the condition.

    CONCLUSION: Reverse calculation is less than the target net price. Need to subtract 0.0001 from discount to satisfy the condition

    Please generate a macro so that when it does a reverse calculation, the net price is always equal or greater than the target net price. To satisfy the condition, the discount should become D-0.0001

    NEW NET PRICE FORMULA

    NET PRICE = round(LP-(LP*(D-0.0001)/100))),4)
    NET PRICE = 1999.8013
    Which satisfies the condition.


    P.s. If net price is still less than the target price
    The subtractor will be 0.0002 and so on. Until calculated Net price is greater than or equal to target net price.

    in another column Please help me create a macro to calculate the Target Net price by varying the List price and the Discount to get the 100% exact Match Net price.
    By Varying the List price it should be below than the List price
    By Varying the Discount got no restriction but most likely it will got lesser.

    From the example above; Original List price = 2345.0900 ; Original Discount = 14.7240 ; Target Net Price = 1999.8000

    Manipulated List price - 2345.0885 - The Manipulated List price is Less than the Original List price - Correct
    Manupulated Discount - 14.7239
    Net Price - 1999.80

    Please help me.

    Many thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-01-2016
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    14

    Re: List price and Discount Manipulator to Get the Target Net price

    If I understand correctly, you don't need VBA to solve this problem.
    If you calculate the discount using ROUNDDOWN instead of 5/4 rounding and then calculate the list price from the target price using the new discount to mark up you should get the result you want. e.g

    Discount in column F =ROUNDDOWN(IF(A2="","",(A2-B2)/(A2/100)),4)
    List price in Column E =D2/((100-F2)/100)

    This will give a manipulated list price always less than or equal to original list, and a net price equal to target price

  3. #3
    Registered User
    Join Date
    11-09-2016
    Location
    LONDON
    MS-Off Ver
    2011 V14.4.8
    Posts
    2
    Hi, thank you. I will refunitely try that.

    Quote Originally Posted by thompson_djc View Post
    If I understand correctly, you don't need VBA to solve this problem.
    If you calculate the discount using ROUNDDOWN instead of 5/4 rounding and then calculate the list price from the target price using the new discount to mark up you should get the result you want. e.g

    Discount in column F =ROUNDDOWN(IF(A2="","",(A2-B2)/(A2/100)),4)
    List price in Column E =D2/((100-F2)/100)

    This will give a manipulated list price always less than or equal to original list, and a net price equal to target price

+ 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. Price Per Unit in a Table for a Fixed Incremental Price Discount
    By natkoy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2016, 03:51 AM
  2. Replies: 6
    Last Post: 01-05-2014, 11:54 PM
  3. How can I apply a 20% discount to an entire price list at one time?
    By akrhodes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2013, 07:21 PM
  4. [SOLVED] Price List with discount structure dependent on two variables.
    By guarachon63 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-18-2012, 10:00 PM
  5. Replies: 4
    Last Post: 08-15-2012, 09:49 AM
  6. Replies: 6
    Last Post: 10-12-2005, 03:05 PM
  7. [SOLVED] formula for - price times discount times tax = final price
    By anton in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-12-2005, 09:05 AM

Tags for this Thread

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