Forum Discussion

Tootall22's avatar
Tootall22
Copper Contributor
Mar 17, 2023
Solved

returning a 1 or 0 depending on start and termination dates

I have an issue with some code. I would like it to return a 1 or a 0 depending on whether the employee worked with the company that month.   the issues I have are as follows: 1. An employee starts...
  • HansVogelaar's avatar
    HansVogelaar
    Mar 17, 2023

    Tootall22 

    =(NUMBERVALUE(F$1)<=IF($D2="", IF($E2="", DATE(9999, 12, 31), NUMBERVALUE($E2)), NUMBERVALUE($D2)))*(EOMONTH(NUMBERVALUE(F$1), 0)>=NUMBERVALUE($C2))

     

    Fill down, then to the right (or vice versa)

     

     

Resources