leahmullins
New Member
- Joined
- Mar 7, 2018
- Messages
- 3
I am needing a formula to calculate attendance depending on the employee's time of service. If an employee has worked for the company less than two years, attendance is calculated in a way the employee is allowed to miss less days (only allowed 3) before receiving a point and if they have been with the company longer than two years, it is calculated that the employee is allowed more days to miss (allowed 5) before receiving a point. I want the formula to determine which way to calculate it based on the date of hire I enter into the spreadsheet. I currently have this formula: =IF(OR(K8<=3,K8<=4),K8*0,IF(F3>TODAY()-731,(K8-4)*1,(K8-5)*1)), but it won't do the correct calculation based on the hire date when the days missed is >=4 if they have been with the company less than 2 years. When K8=4 it won't calculate a point. If I manipulate the sum "(K8-4)*1 by adding 1 ((K8-4)*1+1), it throws off the calculation if the employee has been with the company over 2 years (it will calculate -1 if they have missed 4 days). A couple cells to know: F3= the person's Date of Hire; K8=the amount of days missed. I am currently using Excel 2013 with Windows 7 Professional. Any help would be greatly appreciated.