Forum

Notifications
Clear all

DATEDIF Formula

2 Posts
2 Users
0 Reactions
116 Views
(@donne321)
Posts: 1
New Member
Topic starter
 

I'm trying to figure out the tenure of my employees, both current and those who are terminated. =DATEDIF(A2,B2,"m") is working for those with a hire date and termination date. I get #NUM! when there is no termination date. I was thinking an IF or OR function could be added with =DATEDIF(date1,NOW,unit) to link the two formulas. However, it just errors out on me. Any help with this would be greatly appreciated. I've attached the spreadsheet with the data. 

 
Posted : 19/09/2020 10:38 am
(@purfleet)
Posts: 412
Reputable Member
 

Just wrap it in a iferror - =IFERROR(DATEDIF(A2,B2,"m"),"")

 
Posted : 19/09/2020 2:01 pm
Share: