Can someone please take a look at my nested IF statement & advise what I am doing wrong?

The formula works fine when I use only 1 condition. Once I add the 2nd condition & choose it's value from the dropdown list, the column for the resulting date (same column for both conditions) returns a blank for its result, . This happens regardless of which condition I begin the formula with ("<10" or "10 or >').

The simple logic:

Formula results are displayed in column Date Project Quote Expected. This result is a WORKDAY that is either 5 or 10 workdays later than the date in the Actual Date of Site Visit column (depending upon the value selected in dropdown of the # Doors column.

=IF([# Doors]@row = "<10", WORKDAY([Actual Date of Site Visit]@row, +5, IF([# Doors]@row = "10 or >", WORKDAY([Actual Date of Site Visit]@row, +10))))

What am I doing wrong that is impacting the 2nd condition?

Best Answer

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    edited 04/14/23 Answer ✓

    Hi @Bill Calder

    I hope you're well and safe!

    Try something like this. (You were missing the closing parenthesis for Holidays, and one to many parenthesis in the end)

    =IF([# Doors]@row = "<10", WORKDAY([Actual Date of Site Visit]@row, 5), IF([# Doors]@row = "10 or >", WORKDAY([Actual Date of Site Visit]@row, 10)))

    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.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!