Skip to main content

Formula question - newbie

  • September 30, 2022
  • 4 replies
  • 10 views

Forum|alt.badge.img+6

This is probably really stupid but my formula below is returning the opposite of what I expect. I set the Start_Date field (data type DATE) to 9/1/2022 and TODAY() is 9/30/2022. I would expect the result to be “Y” instead it comes up as “N”. What am I doing wrong? TYIA

IF(DATETIME_FORMAT(TODAY(),“MM/DD/YYYY”) > Start_Date, “Y”, “N”)

4 replies

Forum|alt.badge.img+16
  • Inspiring
  • 529 replies
  • September 30, 2022

Hi @Alex_Ma
You are comparing a string to a date. There is no need to format the Today().

IF(TODAY() > {Start Date},'Y','N')

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • 9808 replies
  • September 30, 2022

You can also use the IS_AFTER() function as well:

IF(
IS_AFTER(TODAY(),{Start Date},
'Y','N'
)

Forum|alt.badge.img+6
  • Author
  • Inspiring
  • 12 replies
  • October 1, 2022

Hi @Alex_Ma
You are comparing a string to a date. There is no need to format the Today().

IF(TODAY() > {Start Date},'Y','N')

Worked great, thank you!


Forum|alt.badge.img+6
  • Author
  • Inspiring
  • 12 replies
  • October 1, 2022

You can also use the IS_AFTER() function as well:

IF(
IS_AFTER(TODAY(),{Start Date},
'Y','N'
)

Thanks, that worked too