Skip to main content

Formula question - newbie

  • Sep 30, 2022 7:50 PM UTC
  • 4 replies
  • 55 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”)

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+16
  • Inspiring
  • Sep 30, 2022 8:06 PM UTC

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
  • Sep 30, 2022 11:11 PM UTC

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
  • Oct 1, 2022 12:49 AM UTC

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
  • Oct 1, 2022 12:50 AM UTC

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

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

Thanks, that worked too