Oct 06, 2020 03:33 PM
Hello Airtable community!
I am struggling with a formula and thought I would put it here since you all never let me down :slightly_smiling_face:
I want the formula to produce the result overdue IF
For reference here is what I currently have (Very far off)
IF(DATETIME_DIFF(TODAY(),{Last contact},‘days’)>90,“Overdue”)
THANK YOU !!!
Solved! Go to Solution.
Oct 07, 2020 05:03 AM
I would first create a formula field called “Days since contact” to simplify this (you can hide the field after). This formula will tell you the number of days since your {Last contact} date field:
DATETIME_DIFF(TODAY(), {Last contact}, 'days')
Then you can use an IF() statement with OR() to check is any of those these 3 conditions are true:
IF( OR( AND({Days since contact}>180, {Level of connection} > 5, {Level of Importance} > 5), AND({Days since contact}>90, {Level of connection} > 7, {Level of Importance} > 7), AND({Days since contact}>30, {Level of connection} > 8.9, {Level of Importance} > 8.9) ), "Overdue")
That should work as long as the fields are all titled correctly, and you create the new {Days since contact} field. Hope that works for you.
Oct 07, 2020 05:03 AM
I would first create a formula field called “Days since contact” to simplify this (you can hide the field after). This formula will tell you the number of days since your {Last contact} date field:
DATETIME_DIFF(TODAY(), {Last contact}, 'days')
Then you can use an IF() statement with OR() to check is any of those these 3 conditions are true:
IF( OR( AND({Days since contact}>180, {Level of connection} > 5, {Level of Importance} > 5), AND({Days since contact}>90, {Level of connection} > 7, {Level of Importance} > 7), AND({Days since contact}>30, {Level of connection} > 8.9, {Level of Importance} > 8.9) ), "Overdue")
That should work as long as the fields are all titled correctly, and you create the new {Days since contact} field. Hope that works for you.
Oct 08, 2020 09:24 AM
This did the trick. Thank you, Nick!