Is there a formula for within 6 months?

I'm trying to start a formula for this scenario, but am stuck.

I'd like to have the column have a green symbol if the date in another column is within the past 6 months. Once 6 months have passed, I want the symbol to turn red.

Example:

Column 1 Column 2

12/12/22. Green Symbol

4/5/21 Red Symbol


Thoughts?

Best Answer

  • Jeff Reisman
    Jeff Reisman ✭✭✭✭✭✭
    Answer ✓

    Be sure your [Column 1] is a date-type column and contains actual date values.

    The formula works, except for the part to leave the RYG column blank if there's no data value. Below, I've fixed that with a new formula:

    =IF(ISDATE([Column 1]@row), IF([Column 1]@row < TODAY(-180), "Red", IF([Column 1]@row >= TODAY(-180), "Green", "")), "")


    Regards,

    Jeff Reisman

    Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages

    If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!