would like to calculate month’s incentive to the sales rep. and Supervisor with the help of macro. Result need to come in sheet2 (Amount obtained for each Representatives and Supervisor). Data contains in sheet one. Can somebody give a solution?
Calculation as given below
5 representatives and 1 supervisor are here
If Sales amount =>5000 then Scheme Amount = representatives X 100 (5*100 =500)
In Second sheet result should come as follows
If all representatives are present then in sheet2 representative Column Scheme Amount/ representatives presented. (500/5=100) 100 each for (all) representatives
If any representative or representatives which are absent then in sheet2 representative Column scheme amount/ representatives present.
If any representative takes Half Day then he will get half of Scheme Amount
If Supervisor is present he should get alone amount of 100 as scheme amount.
If Supervisor is half day then he will get half of 100 scheme amount
If he is absent then he do not get scheme amount.
Legend
P – Present
H – half Day
A – Half Day
Sheet1
| Date |
Sale
Amount |
Scheme
Amount |
Rep1 |
Rep2 |
Rep3 |
Rep4 |
Rep5 |
Supervisor |
|
|
|
|
| 01/01/2012 |
7600 |
|
A |
P |
P |
H |
P |
P |
|
|
|
Legend |
| 02/01/2012 |
6500 |
|
P |
P |
P |
P |
P |
P |
|
|
P = |
Present |
| 03/01/2012 |
4000 |
|
P |
P |
P |
P |
H |
H |
|
|
H = |
Half Day |
| 04/01/2012 |
3500 |
|
P |
P |
P |
P |
P |
P |
|
|
A = |
Absent |
| 05/01/2012 |
8000 |
|
P |
A |
A |
P |
P |
P |
|
|
|
|
| 06/01/2012 |
3500 |
|
P |
P |
P |
H |
A |
P |
|
|
|
|
| 07/01/2012 |
9000 |
|
A |
H |
P |
P |
P |
P |
|
|
|
|
| 08/01/2012 |
12000 |
|
P |
P |
P |
P |
P |
P |
|
|
|
|
| 09/01/2012 |
6500 |
|
P |
P |
P |
P |
P |
H |
|
|
|
|
| 10/01/2012 |
7500 |
|
P |
P |
P |
P |
P |
p |
|
|
|
|
| 11/01/2012 |
8000 |
|
P |
P |
P |
P |
P |
p |
|
|
|
|
| 12/01/2012 |
9000 |
|
P |
H |
P |
A |
P |
p |
|
|
|
|
| 13/01/2012 |
5500 |
|
P |
P |
P |
P |
P |
H |
|
|
|
|
| 14/01/2012 |
6500 |
|
P |
P |
H |
P |
P |
h |
|
|
|
|
| 15/01/2012 |
8500 |
|
P |
P |
P |
P |
P |
p |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Sheet2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Date |
Sale
Amount |
Scheme
Amount |
Rep1 |
Rep2 |
Rep3 |
Rep4 |
Rep5 |
Supervisor |
|
|
|
|
| 01/01/2012 |
7600 |
|
|
|
|
|
|
|
|
|
|
|
| 02/01/2012 |
6500 |
|
|
|
|
|
|
|
|
|
|
|
| 03/01/2012 |
4000 |
|
|
|
|
|
|
|
|
|
|
|
| 04/01/2012 |
3500 |
|
|
|
|
|
|
|
|
|
|
|
| 05/01/2012 |
8000 |
|
|
|
|
|
|
|
|
|
|
|
| 06/01/2012 |
3500 |
|
|
|
|
|
|
|
|
|
|
|
| 07/01/2012 |
9000 |
|
|
|
|
|
|
|
|
|
|
|
| 08/01/2012 |
12000 |
|
|
|
|
|
|
|
|
|
|
|
| 09/01/2012 |
6500 |
|
|
|
|
|
|
|
|
|
|
|
| 10/01/2012 |
7500 |
|
|
|
|
|
|
|
|
|
|
|
| 11/01/2012 |
8000 |
|
|
|
|
|
|
|
|
|
|
|
| 12/01/2012 |
9000 |
|
|
|
|
|
|
|
|
|
|
|
| 13/01/2012 |
5500 |
|
|
|
|
|
|
|
|
|
|
|
| 14/01/2012 |
6500 |
|
|
|
|
|
|
|
|
|
|
|
| 15/01/2012 |
8500 |
|
|
|
|
|
|
|
|
|
|
|