Forum Discussion

Teresa Smagacz's avatar
Teresa Smagacz
Copper Contributor
Jun 16, 2021

Date formula if dates in 1 to 4 cells

I want a formula to calculate the days (or months) an employee has worked in 2021 thus far (i.e. from TODAY'S date). An employee will have on their profile some or all of the following dates:

  • Hire Date
  • Rehire Date
  • Adjusted Seniority Date
  • Termination Date

If any of the above dates are prior to 2021, the formula needs to calculate from 01/01/2021 thru TODAY. And, the formula needs to work in order of the above list. Meaning, if an employee has Hire Date on their profile, use Hire Date (or 01/01/21 if Hire Date is < 01/01/21); if an employee has Hire Date and Rehire Date on their profile, use Rehire Date (or 01/01/21 if Rehire Date is < 01/01/21); if an employee has Hire Date, Rehire Date, and Adjusted Seniority Date, use Adjusted Seniority Date (or 01/01/21 if Adjusted Seniority Date is < 01/01/21); if an employee has Termination Date on their profile, use Termination Date (or 01/01/21 if Termination Date is < 01/01/21).

 

Possible?

2 Replies

Resources