# Calculate the Bonus units according to the quantity of the units bought (Help)

1. ## Calculate the Bonus units according to the quantity of the units bought (Help)

Hello All
I want a function that add the bonus automatically according to the quantity bought
Here's a sample of the sheetexcell
plz help  Register To Reply

2. ## Re: Calculate the Bonus units according to the quantity of the units bought (Help)

looking at your example, it looks like you want to compound the bonus? in other words
qty of 1000 = bonus 250
qty of 1200 = bonus 250 (for 1000) + 12*2 for bonus 100

is this how you want it calculated?  Register To Reply

3. ## Re: Calculate the Bonus units according to the quantity of the units bought (Help)

Yes exactly..  Register To Reply

4. ## Re: Calculate the Bonus units according to the quantity of the units bought (Help)

by the way i put comments on some values in the excel file that give you some details  Register To Reply

5. ## Re: Calculate the Bonus units according to the quantity of the units bought (Help)

Try this..

=SUM(INT(B10/1000)*250,INT(MOD(B10,1000)/500)*100,INT(MOD(B10,500)/100)*12)  Register To Reply

6. ## Re: Calculate the Bonus units according to the quantity of the units bought (Help)

Thaaaaaank yoooou sooo much Ace_XL, I appreciate it  Register To Reply

7. ## Re: Calculate the Bonus units according to the quantity of the units bought (Help)

@ mo_naf

Welcome to the forum.

Thanks.

Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.  Register To Reply