Hello everyone! I'm new to the forums here. I am having trouble trying to figure out how or if I am able to calculate the following scenarios in my spreadsheet. Our company has a rollover system, and I need to be able to do the following:
- Associates who do not receive a penalty in 90 consecutive calendar days will receive a credit of 0.5 points. However, they will not receive points if the employee has 0 points.
- Each violation will fall off after one calendar year from the date the violation occured.
I have fair knowledge of Excel and I think what I am looking for is a bit too complex for formulas to perform, but I think it can be done in VBA. I have attached the spreadsheet to this post. I have been able to calculate the points I needed using SumIF statements and assign numerical values to Letters/Text using VLOOKUP the way I wanted; just having trouble with these now.
The logic I can think of would be like this ...
- If Count of Consecutive Empty Cells = 90 from a cell containing <Date of Incurence> (possibly from any non-blank cells?), subtract 0.5 from Total Accrued Points,
Else if Total Accrued Points = 0, add 0.
- If Count of Consecutive Empty Cells = 180 from a cell containing <Date of Incurence> (possibly from any non-blank cells?), subtract 1.0 from Total Accrued Points,
Else if Total Accrued Points = 0, add 0.
- If Count of Consecutive Empty cells = 270 from a cell containing <Date of Incurence> (possibly from any non-blank cells?), subtract 1.5 from Total Accrued Points,
Else if Total Accrued Points = 0, add 0.
- If Count of Consecutive Empty cells = 360 from a cell containing <Date of Incurence> (possibly from any non-blank cells?), subtract 2.0 from Total Accrued Points,
Else if Total Accrued Points = 0, add 0.
If cell containing <Date of Incurence> > 365 days, delete cell containing <Date of Incurence>[/LIST]
Any assistance would be immensely appreciated! Thank you![]()
Bookmarks