white_knight
New Member
- Joined
- Jun 16, 2017
- Messages
- 3
Hello Everyone,
I want to get the first payroll of the new hires by using their hiring dates. The pay is given on the 15th and last day of the month. I am using the formula IF(DAY(Hiring Date)<=15,DATE(YEAR(Hiring Date),MONTH(Hiring Date),15),EOMONTH(F4,0)). It gives me their first payroll to be either 15th or last day of the month. The only issue is that this formula doesn't exclude the weekend and holidays. I want the formula to readjust the date (make the payday earlier) if payday falls on the weekend or holiday. I am trying to use Weekday and Workday functions, but getting nowhere. Please help. Thank you in advance.
I want to get the first payroll of the new hires by using their hiring dates. The pay is given on the 15th and last day of the month. I am using the formula IF(DAY(Hiring Date)<=15,DATE(YEAR(Hiring Date),MONTH(Hiring Date),15),EOMONTH(F4,0)). It gives me their first payroll to be either 15th or last day of the month. The only issue is that this formula doesn't exclude the weekend and holidays. I want the formula to readjust the date (make the payday earlier) if payday falls on the weekend or holiday. I am trying to use Weekday and Workday functions, but getting nowhere. Please help. Thank you in advance.