Skip to main content
Question

Formula Date field based on conditions

  • May 3, 2020 12:17 AM UTC
  • 1 reply
  • 127 views

  • Qrew Corporal
I have a Formula Date Field Titled "Tentative Discharge Date". I also have a dropdown field titled "Reason for Placement", and a Date field title Placement Date, I want the following to happen with the formula for Tentative Discharge Date

  • If Reason for Placement=Customer had contact with known positive, Tentative Discharge Date is 14 days AFTER Placement Date
  • If Reason for Placement=Customer is showing symptoms,Tentative Discharge Date is 7 days after Placement Date, if there is no value in Date COVID-19 Tests Results Received, otherwise expected discharge date is 7 days after Date COVID-19 Tests Results Received
  • If Reason for Placement=Customer is positive,Tentative Discharge Date is 7 days after Date COVID-19 Tests Results Received
:-)

------------------------------
Ermias Bean
------------------------------
This topic has been closed for replies.

1 reply

MarkShnierYou
Forum|alt.badge.img+24
try this

IF(
[Reason for Placement] = "Customer had contact with known positive], [Placement Date] + Days(14),
[Reason for Placement] = "Customer is showing symptoms" and IsNull([Date COVID-19 Tests Results Received]), [Placement Date] + Days(7),
[Reason for Placement] = "Customer is showing symptoms" and not IsNull([Date COVID-19 Tests Results Received], 
         [Date COVID-19 Tests Results Received] + Days(7),
[Reason for Placement] = "Customer is positive", [Date COVID-19 Tests Results Received] + Days(7)
)


------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------