A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Use the below formula to show 0 in case one of the cells is blank
=IF(OR(H80="",J80=""),0,DATEDIF(H80,J80,"D"))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to correct this formula =DATEDIF(H80,J80,"D")ISBLANK,0)) , where H80 is the start_date, J80 is the end_date, "D" gives me the number of days in between but if one cell is blank to return "0" instead ( example "-43560") any ideas how to correct this?
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Use the below formula to show 0 in case one of the cells is blank
=IF(OR(H80="",J80=""),0,DATEDIF(H80,J80,"D"))
Thank you very much that corrected the issue perfectly.