IF Formula Help!

Good morning

I have a formula (as below) that is relatively simple and draws from 2 different cells to return whether a machine is Online or Offline.

=IF(ISBLANK([Unscheduled Downtime Reason]@row), IF(ISBLANK([Scheduled Downtime Reason]@row), "Online", [Scheduled Downtime Reason]@row), [Unscheduled Downtime Reason]@row)

I would like to add a deviation to this but I'm not sure how to write it. The deviation should come from a different column named "Machine Back Online?" and if that cell has a "Yes" then I would like the cell with the above formula to return "Online". This condition should trump the conditions within the "Unscheduled Downtime Reason" column and also the "Scheduled Downtime Reason" column.

I hope that makes sense!

Thank you in advance.

Answers

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

    Hi @Lee Wood

    I hope you're well and safe!

    Try something like this.

    =IF([Machine Back Online?]@row = "Yes", "Online", IF([Unscheduled Downtime Reason]@row = "", IF([Scheduled Downtime Reason]@row = "", "Online", [Scheduled Downtime Reason]@row), [Unscheduled Downtime Reason]@row))

    Did that work/help?

    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, 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!