D
Danny Puype
Hi,
I've come across this message board looking for inspiration to solve following situation:
Suppose you have a salesperson having sold 45000 € -
a cumulative bonus needs to be calculated based on a table, considering the proportional bonus for each scaling :
0 0,0%
20000 2,5%
30000 5,0%
40000 7,5%
50000 10,0%
60000 12,5%
70000 15,0%
80000 17,5%
So in other words:
(2,5% * 10000) + (5% * 10000) + (7,5% * 5000) i.e.
upto 20000 there's no bonus, below 30000, there's 2,5%, below 40000 there's 5% etc. (the vlookup logic)
Beyond the exact figures which are just exemplary, i'm interested in specific functions or vba which could be of help achieving this in a simple way.
I know you could proceed with nested if's in combination with vlookup, but if the scales become large, this becomes heavy if not impossible.
Anyway, I'm happy already to have found this message board with it's quality postings
Thanks in advance for any posted directions
I've come across this message board looking for inspiration to solve following situation:
Suppose you have a salesperson having sold 45000 € -
a cumulative bonus needs to be calculated based on a table, considering the proportional bonus for each scaling :
0 0,0%
20000 2,5%
30000 5,0%
40000 7,5%
50000 10,0%
60000 12,5%
70000 15,0%
80000 17,5%
So in other words:
(2,5% * 10000) + (5% * 10000) + (7,5% * 5000) i.e.
upto 20000 there's no bonus, below 30000, there's 2,5%, below 40000 there's 5% etc. (the vlookup logic)
Beyond the exact figures which are just exemplary, i'm interested in specific functions or vba which could be of help achieving this in a simple way.
I know you could proceed with nested if's in combination with vlookup, but if the scales become large, this becomes heavy if not impossible.
Anyway, I'm happy already to have found this message board with it's quality postings
Thanks in advance for any posted directions