Skip to main content
Solved

IF statement with first day of 6 months ago


Forum|alt.badge.img+3

Hello everyone, 

I'd like to make a formula with an IF statement that shows "OK" if a date is in the last 6 complete months. 

For example, if today is the 17th of March, it would show "OK" for every record since the 1st of September.

Is this something possible?

Thanks 🙂

Best answer by TheTimeSavingCo

Yeap:

IF( IS_AFTER( Date, DATEADD( DATEADD( DATETIME_PARSE( "01 " & DATETIME_FORMAT( TODAY(), "MM YYYY" ), "DD MM YYYY" ), "-6", "months" ), "-1", "days" ) ), "Yes", "No" )

View original
Did this topic help you find an answer to your question?

TheTimeSavingCo
Forum|alt.badge.img+28

Yeap:

IF( IS_AFTER( Date, DATEADD( DATEADD( DATETIME_PARSE( "01 " & DATETIME_FORMAT( TODAY(), "MM YYYY" ), "DD MM YYYY" ), "-6", "months" ), "-1", "days" ) ), "Yes", "No" )


Forum|alt.badge.img+3
  • New Participant
  • March 17, 2023
TheTimeSavingCo wrote:

Yeap:

IF( IS_AFTER( Date, DATEADD( DATEADD( DATETIME_PARSE( "01 " & DATETIME_FORMAT( TODAY(), "MM YYYY" ), "DD MM YYYY" ), "-6", "months" ), "-1", "days" ) ), "Yes", "No" )


That's awesome. Thank you so much!


Reply