Skip to main content
Solved

compare date fields only if first field is not blank

  • September 19, 2023
  • 3 replies
  • 26 views

airballer86
Forum|alt.badge.img+18

I cannot decide if I'm better off with an automation or else I'm just not meant to do if else formulas. I need to first check if a date field is not blank. If it is not blank, then I want to compare it with another date field. If it's later than other date field I want to show 'launch date moved out'. I know this formula is not comparing but it's what I ended up with (and it's not working)

IF({Original Launch Date} & "-"

THEN {Launch Date}>{Original Launch Date},'Launch Delayed')

 

Best answer by Alexey_Gusev

Now that I've had a moment to reflect, my question is actually:

IF({Launch Date}>{Original Launch Date} & {Original Launch Date} & "-" & },'Launch Delayed')

I want to compare two dates only if one of the dates field is not blank

 


Hi,
the correct syntax should be something like:

IF({Original Launch Date}, IF(IS_AFTER({Launch Date},{Original Launch Date}),'Launch Delayed'))

 

3 replies

airballer86
Forum|alt.badge.img+18
  • Author
  • Known Participant
  • 48 replies
  • September 20, 2023

Now that I've had a moment to reflect, my question is actually:

IF({Launch Date}>{Original Launch Date} & {Original Launch Date} & "-" & },'Launch Delayed')

I want to compare two dates only if one of the dates field is not blank

 


Alexey_Gusev
Forum|alt.badge.img+25
  • Brainy
  • 1260 replies
  • Answer
  • September 20, 2023

Now that I've had a moment to reflect, my question is actually:

IF({Launch Date}>{Original Launch Date} & {Original Launch Date} & "-" & },'Launch Delayed')

I want to compare two dates only if one of the dates field is not blank

 


Hi,
the correct syntax should be something like:

IF({Original Launch Date}, IF(IS_AFTER({Launch Date},{Original Launch Date}),'Launch Delayed'))

 


airballer86
Forum|alt.badge.img+18
  • Author
  • Known Participant
  • 48 replies
  • September 22, 2023

Hi,
the correct syntax should be something like:

IF({Original Launch Date}, IF(IS_AFTER({Launch Date},{Original Launch Date}),'Launch Delayed'))

 


Perfect! thank you!