Microsoft 365 and Office | Excel | For business | Windows
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This is what I have but it is not working, it comes up with a #VALUE.
=IF(ISBLANK($O2),
IF(ISBLANK($J2), "", TODAY()-$J2),
IF(ISBLANK($J2), "", $O2-$J2)
The formula you provided has a structure that could lead to a #VALUE! error if the references or calculations are not handled correctly. Here’s a revised version of your formula that should work without returning a #VALUE! error:
=IF(ISBLANK($O2),
IF(ISBLANK($J2), "", TODAY()-$J2),
IF(ISBLANK($J2), "", $O2-$J2)
)
$O2 and $J2 are correctly referencing the intended cells.$J2 contains a date, ensure it is formatted properly as a date. If it is blank, the formula will return an empty string.If you still encounter issues, consider checking the values in $O2 and $J2 to ensure they are as expected, and that they do not contain any errors themselves.
References: