I would like to correct this code as details given below
Scheme amount = 800 then amount need to divide to SalesRep presented and Half day presented.
Suppose 3 SalesRep worked full day and 1 SalesRep worked half day, then full day worked 3 rep will get 225 each and 1 Rep will get 125. So how can I change this code.
[pre]
[/pre]
Scheme amount = 800 then amount need to divide to SalesRep presented and Half day presented.
Suppose 3 SalesRep worked full day and 1 SalesRep worked half day, then full day worked 3 rep will get 225 each and 1 Rep will get 125. So how can I change this code.
[pre]
Code:
If wks1.Cells(i, j).Value = "P" Then
Incentive = SchemeAmount / SaleRepInc
wks2.Cells(i, j).Value = Incentive
ElseIf wks1.Cells(i, j).Value = "H" Then
Incentive = SchemeAmount / SaleRepInc
wks2.Cells(i, j).Value = Incentive / 2