Feb 22, 2018 01:24 PM
IF({Sale Date}="",(DATETIME_DIFF({Sale Date},{Purchase Date},‘d’), (DATETIME_DIFF({Today’s Date},Purchase Date},‘d’))
Feb 22, 2018 02:59 PM
I miss 2 closing parentheses, from the DATETIME_DIFF
. Also the second {Purchase Date}
has no opening bracket.
Feb 23, 2018 07:54 PM
Didn’t work, but I found an alternate solution. It accepted my Datetime_diff if it were the 3rd item in the if statement, but not the second one.
Feb 24, 2018 10:46 AM
I don’t understand your last message, but I’ve created a simpler formula that works:
IF(Sale, DATETIME_DIFF( Sale, Purchase,'d'),DATETIME_DIFF( TODAY(),Purchase,'d'))
.
You can see my table: https://airtable.com/shrM7rGbN4msFSGPT
DATETIME_DIFF
functionTODAY()
function= ""
with the Sale Date{}
:
Sale
, as it’s a Date fieldSaleDate
Sale_Date
.Mar 17, 2018 08:59 AM
Thank you for the help!