[TABLE="width: 303"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Hire Date[/TD]
[TD]Separation Date[/TD]
[TD]Qualify[/TD]
[/TR]
[TR]
[TD]Agustin[/TD]
[TD="align: right"]7/16/2014[/TD]
[TD][/TD]
[TD]Num[/TD]
[/TR]
[TR]
[TD]Aldo[/TD]
[TD="align: right"]3/17/2014[/TD]
[TD="align: right"]1/21/2018[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Ibrahim[/TD]
[TD="align: right"]1/21/2017[/TD]
[TD="align: right"]1/7/2018[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Luis[/TD]
[TD="align: right"]8/2/2017[/TD]
[TD="align: right"]9/3/2017[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Issaha[/TD]
[TD="align: right"]9/28/2016[/TD]
[TD="align: right"]11/20/2016[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD="align: right"]2/1/2017[/TD]
[TD="align: right"]9/5/2017[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Arton[/TD]
[TD="align: right"]5/17/2017[/TD]
[TD][/TD]
[TD]Num[/TD]
[/TR]
</tbody>[/TABLE]
Hope someone can point me in the right direction. I'm a relative novice with excel but I'm better than the next guy at work so I've been given the simple task of creating a list of employees hired in 2017 that were employed with the firm for more than 90 days and would qualify for certain benefits. Above is a small list taken from a much larger sheet. I've inserted the formula:[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]IF(AND(ISNUMBER(C2),B2>=DATE(2017,1,1),DATEDIF(EOMONTH(B2,0)+1,C2,"d")>90),"Yes","No")[/TD]
[/TR]
</tbody>[/TABLE]
under the "Qualify" column, it works except when the employee does not have a separation date since they're still employeed with the firm, my formula kicks out a #NUM message. And advice?
<tbody>[TR]
[TD]Name[/TD]
[TD]Hire Date[/TD]
[TD]Separation Date[/TD]
[TD]Qualify[/TD]
[/TR]
[TR]
[TD]Agustin[/TD]
[TD="align: right"]7/16/2014[/TD]
[TD][/TD]
[TD]Num[/TD]
[/TR]
[TR]
[TD]Aldo[/TD]
[TD="align: right"]3/17/2014[/TD]
[TD="align: right"]1/21/2018[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Ibrahim[/TD]
[TD="align: right"]1/21/2017[/TD]
[TD="align: right"]1/7/2018[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Luis[/TD]
[TD="align: right"]8/2/2017[/TD]
[TD="align: right"]9/3/2017[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Issaha[/TD]
[TD="align: right"]9/28/2016[/TD]
[TD="align: right"]11/20/2016[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD="align: right"]2/1/2017[/TD]
[TD="align: right"]9/5/2017[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Arton[/TD]
[TD="align: right"]5/17/2017[/TD]
[TD][/TD]
[TD]Num[/TD]
[/TR]
</tbody>[/TABLE]
Hope someone can point me in the right direction. I'm a relative novice with excel but I'm better than the next guy at work so I've been given the simple task of creating a list of employees hired in 2017 that were employed with the firm for more than 90 days and would qualify for certain benefits. Above is a small list taken from a much larger sheet. I've inserted the formula:[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]IF(AND(ISNUMBER(C2),B2>=DATE(2017,1,1),DATEDIF(EOMONTH(B2,0)+1,C2,"d")>90),"Yes","No")[/TD]
[/TR]
</tbody>[/TABLE]
under the "Qualify" column, it works except when the employee does not have a separation date since they're still employeed with the firm, my formula kicks out a #NUM message. And advice?