Date calculation formula that ignores blanks

I have a date formula to work out the number of days between 2 dates, if either or both of the dates are blank, it returns NaN, how can I amend the formula to only perform the calculation if both fields are populated?

(Long overdue a lay-in and my brain is not functioning by itself, need help… :slight_smile: )


Hey @Karen_Gardner,

You can use the following condition:


The condition checks if both of the given dates are not blank. If the condition is true then it returns your time difference.

Please check it and let us know if it worked :slight_smile:

Yours sincerely,
Dimitris Goudis

Getting this error message when copying / pasting the formula.

Sorry I missed some parenthesis :stuck_out_tongue:

Please text me if you have any issue again !

Still getting the same error message

Hey @Karen_Gardner,

Could you import the function manually in the filed without using copy and paste?


I would use this formula:

1 Like

Perfect, thank you. Worked

This topic was solved and automatically closed 3 days after the last reply. New replies are no longer allowed.