Here is an example without an error display if there is no date in a cell.
=IF(ISERROR(DATEDIF(B2,A2,"d")),DATEDIF(A2,B2,"d"),DATEDIF(B2,A2,"d"))

I would be happy to know if I could help.

Nikolino
I know I don't know anything (Socrates)
www.000webhost.com