I am trying to calculate difference (in days) between two dates in SharePoint 2013 using the formula below:
=IF(AND((WEEKDAY(Completed,2))<(WEEKDAY(Issued,2)),((WEEKDAY(Issued,2))-(WEEKDAY(Completed,2)))>1),(((DATEDIF(Issued,Completed,"D")+1))-(FLOOR((DATEDIF(Issued,Completed,"D")+1)/7,1)*2)-2),(((DATEDIF(Issued,Completed,"D")+1))-(FLOOR((DATEDIF(Issued,Completed,"D")+1)/7,1)*2)))
This works fine. However, the completed date remains empty until the action is completed. This creates a !Num error when I run the calculation. How do I integrate this with ISBLANK formula to remove the !Num error.