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
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
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.
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.
Thank you for this solution. How do I get to the User defined function so that I can change the rates / levels
Dk
Here are a couple options...
With:
C2: (unit price)
C4: (units)
Is that something you can work with?Please Login or Register to view this content.
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
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
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
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.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks