Dates in IFS Statement

Options

I am trying to use dates (formatted in dates columns) in an IFS statement to compare dates in multiple columns and provide calculations based upon whether a date is before or after (<>) a certain date. I am getting an #UNPARSEABLE error message. I'm wondering if the dates are not reading correctly in the formula, or if something else is wrong. I copied the formula format from a preexisting Excel sheet.

Take a look:

=IFS($DATE@row<$[Savings Start Date (when Contract/ Service Starts)]@row,0,$DATE@row>$[Savings End Date]@row,0,$[Recurring Savings? (Y/N)]@row="N",$[Annual Savings (Run Rate)]@row,TRUE,$[Annual Savings (Run Rate)]@row/12)


Best Answer

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    Answer ✓
    Options

    @T. Brooks

    Try something like this.

    =IF(DATE@row < [Savings Start Date (when Contract/ Service Starts)]@row, 0, 
    IF(DATE@row > [Savings End Date]@row, 0, 
    IF([Recurring Savings? (Y/N)]@row = "N", [Annual Savings (Run Rate)]@row, 
    ([Annual Savings (Run Rate)]@row / 12))))
    

    Did that work/help?

    Remember! Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

Answers

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    Options

    Hi @T. Brooks

    I hope you're well and safe!

    There are multiple errors in the formula.

    Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@workbold.com)

    I hope that helps!

    Be safe and have a fantastic week!

    Best,

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • T. Brooks
    Options

    Thank you Andree. I shared the sheet with you.

  • T. Brooks
    Options

    I tried to revise it to a nested IF statement but now I am getting an "Incorrect Argument" error.

    =IF(DATE@row < [Savings Start Date (when Contract/ Service Starts)]@row, 0, IF(DATE@row > [Savings End Date]@row, 0), IF([Recurring Savings? (Y/N)]@row = "N", [Annual Savings (Run Rate)]@row, ([Annual Savings (Run Rate)]@row / 12)))

    If anyone knows what I'm missing, please advise.

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    Answer ✓
    Options

    @T. Brooks

    Try something like this.

    =IF(DATE@row < [Savings Start Date (when Contract/ Service Starts)]@row, 0, 
    IF(DATE@row > [Savings End Date]@row, 0, 
    IF([Recurring Savings? (Y/N)]@row = "N", [Annual Savings (Run Rate)]@row, 
    ([Annual Savings (Run Rate)]@row / 12))))
    

    Did that work/help?

    Remember! Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!