Hi,
I have an 2 excel files
1. Base Data file that contains records of employees according to their designation arranged in different worksheets.
2. CollatedDataSource containing the sales numbers for each month arranged territory wise in one worksheet and the consistency payout matrix in the second worksheet
I need to calculate consistency incentive payouts each month. For instance, for June, if a sales rep has achieved his target (Datasource file - Sales Data tab, Col J -L) in Apr, May & June then his consistency count is 3. If he achieves in May & June, then 2 and if only in June then 1. If he achieves Apr, May and not in June, then his consistency month count gets reset to 0. This consistency has to be checked every month till March. So each month, if the sales rep is achieving then in Dec his consistency month count should be 12. Then on basis of his consistency month count and slab (base data file), the incentive numbers need to be looked up from the consistency tab
Is there any way to do this in VBA?
Please help!
Have attached the sample datasource file and base data files for reference.
I have an 2 excel files
1. Base Data file that contains records of employees according to their designation arranged in different worksheets.
2. CollatedDataSource containing the sales numbers for each month arranged territory wise in one worksheet and the consistency payout matrix in the second worksheet
I need to calculate consistency incentive payouts each month. For instance, for June, if a sales rep has achieved his target (Datasource file - Sales Data tab, Col J -L) in Apr, May & June then his consistency count is 3. If he achieves in May & June, then 2 and if only in June then 1. If he achieves Apr, May and not in June, then his consistency month count gets reset to 0. This consistency has to be checked every month till March. So each month, if the sales rep is achieving then in Dec his consistency month count should be 12. Then on basis of his consistency month count and slab (base data file), the incentive numbers need to be looked up from the consistency tab
Is there any way to do this in VBA?
Please help!
Have attached the sample datasource file and base data files for reference.