Incorrect Argument Set Error

Options

Can anyone help with the below?

If I input the formulas into Separate rows they all work fine. When combined into 1 row I get an Incorrect argument set error

=IF([% Complete]@row = 1, "Green", IF(AND([Actual Start]@row = "", [Start Date]@row < TODAY(-5)), "Red", "Gray", IF([Actual Start]@row > [Start Date]@row, "Red", "Yellow")))

Answers

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

    Hi @Alex Szalkowski

    I hope you're well and safe!

    Try something like this (I've removed the Gray part because that was what was wrong, and I'm not sure what it should be)

    =IF([% Complete]@row = 1, "Green", IF([Start Date]@row <> "", IF(AND([Actual Start]@row = "", [Start Dates]@row < TODAY(-5)), "Red", IF([Actual Start]@row > [Start Date]@row, "Red", "Yellow"))))

    Did that work/help?

    I hope that helps!

    Be safe, and have a fantastic weekend!

    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, Awesome, 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.

  • Alex Szalkowski
    Options

    Hi Andree,

    Unfortunately, this gives a UNPEARSABLE error message.

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

    @Alex Szalkowski

    Sorry about that. Try this one.

    =IF([% Complete]@row = 1, "Green", IF([Start Date]@row <> "", IF(AND([Actual Start]@row = "", [Start Date]@row < TODAY(-5)), "Red", IF([Actual Start]@row > [Start Date]@row, "Red", "Yellow"))))

    Did it work?

    Remember! Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up/Awesome 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!