+ Reply to Thread
Results 1 to 10 of 10

Different royalty rate depending in unit sales

  1. #1
    Registered User
    Join Date
    10-12-2007
    Posts
    30

    Different royalty rate depending in unit sales

    I need to calculate a royalty rate due which is based upon a Unit Price * Unit Sales. The royalty rate due changes at certain levels of sales.
    I've attached sheet to hopefully make clear.
    Many thanks
    Dk
    Attached Files Attached Files

  2. #2
    Forum Contributor vandanavai's Avatar
    Join Date
    09-04-2006
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    UDF for Royalty

    Hi,

    See if this UDF helps u. I have assumed that above 750000 unit royalty paid @ 9% . See attached file. Find Function called 'Royalty' in User Defined Function. See green cells in file.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064
    Try

    Royalty Due =
    ((IF(C4>250000,250000,C4)*2.5%)+
    (IF(C4>500000,500000,C4-250000)*(C4>250000)*4%)+
    (IF(C4>750000,750000,C4-500000)*(C4>500000)*7.5%)+
    ((C4>1000000)*(C4-1000000)*(C4>750000)*9%))*C2
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    10-12-2007
    Posts
    30
    Thank you for this solution. How do I get to the User defined function so that I can change the rates / levels
    Dk

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Different royalty rate depending in unit sales

    Here are a couple options...

    With:
    C2: (unit price)
    C4: (units)

    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  6. #6
    Forum Contributor vandanavai's Avatar
    Join Date
    09-04-2006
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    UDF for Royalty

    Hi

    U can see and change UDF by following steps

    Select 'Tools' from Menu
    Then 'macro' -> Visual basic editor
    in Module1 u will see UDF

    or u can open Visual Basic by pressing Alt+F11

  7. #7
    Registered User
    Join Date
    10-12-2007
    Posts
    30
    Special K

    Don't quite get the result I was expecting with your formula. At 10 unit price and 1000000 units I should get 575,000 royalty - but I get 825,000 with your formula - unless I've copied it incorrectly if so apologies in advance
    Dk

  8. #8
    Registered User
    Join Date
    10-12-2007
    Posts
    30

    UDF for Royalty

    Real newbie to this.
    How do I move this macro from the royalty worksheet into another workbook that I need to use it in.
    Dk

  9. #9
    Forum Contributor vandanavai's Avatar
    Join Date
    09-04-2006
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256
    Hi

    copying UDF

    Open excel file in which u want this UDF, then press Alt+F11 to open Visual Basic. Insert Module .Then copy contents of Modul1 in original file and paste it in Module1 of new file.

  10. #10
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064
    DavidK

    Oops! You're right, my formula was wrong. It should be

    =((IF(C4>250000,250000,C4)*2.5%)+(IF(C4>500000,250000,C4-250000)*(C4>250000)*4%)+(IF(C4>750000,250000,C4-500000)*(C4>500000)*7.5%)+(IF(C4>1000000,250000,C4-750000)*(C4>750000)*9%))*C2

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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