Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

IF statement comparing today's date to a projected date

✭✭✭
edited 11/02/23 in Formulas and Functions

Hello,

I have a column named 2 Approval Package Current Projected Date. I am trying to return a text value based on that column compared to today's date. Here's what I'm looking for:

If 2 Approval Package Current Projected Date has already passed, the text should say RED

If 2 Approval Package Current Projected Date is in the next 10 days, the text should say YELLOW

If 2 Approval Package Current Projected Date is more than 10 days out, the text should say GREEN

This is the formula I wrote to achieve this, but I am getting #INVALID OPERATION. Can a kind soul please take mercy and assist?

=IF([2 Approval Package Current Projected Date]@row < TODAY(), "Red", IF([2 Approval Package Current Projected Date]@row - TODAY() < 10, "Yellow", "Green"))

Best Answers

  • ✭✭✭✭✭✭
    Answer ✓

    Try: =IF([2 Approval Package Current Projected Date]@row > TODAY(10), "Green", IF([2 Approval Package Current Projected Date]@row <= TODAY(), "Red", "Yellow"))

  • ✭✭✭✭✭✭
    Answer ✓

    Hmm. Is the date column setup as a date type column vs text/number?

    You can also just try retyping the formula vs copying/paste which has been known to cause issues in some cases.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    7
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    12
    2