Help

Multivariable IF/AND formula for my personal CRM

Topic Labels: Formulas
Solved
Jump to Solution
1820 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Zack_Crilley
5 - Automation Enthusiast
5 - Automation Enthusiast

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

  • the contact’s sum of (“level of connection” and “Level of importance”) is greater than 5 and “Last Contact” is more than 180 Days
  • The contact’s sum of (“level of connection” and “Level of importance”) is greater than 7 and “Last Contact” is more than 90 Days
    -The contact’s sum of (“level of connection” and “Level of importance”) is greater than 8.9 and “Last Contact” is more than 30 Days

For reference here is what I currently have (Very far off)
IF(DATETIME_DIFF(TODAY(),{Last contact},‘days’)>90,“Overdue”)

THANK YOU !!!

1 Solution

Accepted Solutions
Nick_Dennis
7 - App Architect
7 - App Architect

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.

See Solution in Thread

2 Replies 2
Nick_Dennis
7 - App Architect
7 - App Architect

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.

This did the trick. Thank you, Nick!