IF Function

Options
Zak2428
Zak2428
edited 12/09/19 in Formulas and Functions

I've been trying to find a way to combine various checkboxes to designate different status', for example:

If this checkbox is checked then this is the status

However, if that checkbox is checked AND this checkbox is checked, then it's in a different status

If these 3 checkboxes are checked, then it's in a different status

Tags:

Comments

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

    Hi,

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

    Have a fantastic day!

    Best,

    Andrée Starå

    Workflow Consultant @ Get Done Consulting

    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.

  • Zak2428
    Options

    So what i'm trying to do in this template is to create a formula in the "Status" row (box is outlined) - right below the "On Time" row at the top. The status' are indicated by the black rows with white lettering below: "Information Collection", "Design Queue", "Design Review", etc.

    My team uses this template and must check off every single checkbox, so I want to be able to have Info Collection checked, but then when they get down to the Design Queue checkbox, they can check it off as complete and it'll auto-populate the "Status" data cell from Info Collection to Design Queue. Then, when they complete the next step which is design review, they'd check the box and again it'd update the Status cell from Design Queue to Design Review. 

    Smartsheets Example.PNG

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

    Ok.

    Try something like this. Change the row number so it corresponds to yours.

    =IF(Complete9 = 1; "Design Review"; IF(Complete8 = 1; "Design Queue"; IF(Complete4 = 1; "Information Collection")))

    The same version but with the below changes for your and others convenience.

    =IF(Complete9 = 1, "Design Review", IF(Complete8 = 1, "Design Queue", IF(Complete4 = 1, "Information Collection")))

    Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

    Did it work?

    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.

  • Zak2428
    Options

    Hey Andree, thank you so much for the help!! Reversing the order like that works perfectly!

    Much appreciated!!

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

    Excellent!

    Happy to help!

    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.

  • Zak2428
    Options

    Sorry to bother you again, but maybe you can help me with this one too..

    I want this "On Time" cell to have a formula:

    If no "Completion Date" is filled in, then the On Time column says "Hold".

    If the Completion Date is later than the Due Date, the On Time column says No.

    If the Completion Date is before the Due Date, the On Time column says Yes.

     

    I've tried:

    IF([Completion Date]8 = 0, "Hold", IF([Completion Date]8>[Due Date]8, "No", "Yes")) - It works for the no completion date = hold, but when i fill in dates it goes #Invalid Operation. Maybe it requires an OR function? I've never dealt with those though.

    Smartsheets Example.PNG

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

    Happy to help!

    Try something like this.

    =IF([Completion Date]@row = ""; "Hold"; IF([Completion Date]@row > [Due Dat]@row; "NO"; IF([Completion Date]@row < [Due Dat]@row; "Yes")))

    The same version but with the below changes for your and others convenience.

    =IF([Completion Date]@row = "", "Hold", IF([Completion Date]@row > [Due Dat]@row, "NO", IF([Completion Date]@row < [Due Dat]@row, "Yes")))

    Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

    Did it work?

    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.

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

    There was a spelling mistake in the previous one.

    Try something like this.

    =IF([Completion Date]@row = ""; "Hold"; IF([Completion Date]@row > [Due Date]@row; "NO"; IF([Completion Date]@row < [Due Date]@row; "Yes")))

    The same version but with the below changes for your and others convenience.

    =IF([Completion Date]@row = "", "Hold", IF([Completion Date]@row > [Due Date]@row, "NO", IF([Completion Date]@row < [Due Date]@row, "Yes")))

    Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

    Did it work?

    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.

  • Zak2428
    Options

    Yes it did!

     

    Thanks again!!

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

    Excellent!

    I'm always happy to help!

    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!