Multiple IF & AND statement together

Regan Raj
Regan Raj ✭✭✭

Hi Guys, Good day!

Need some help figuring out the formula to get the desired output.

Formula used =IF(AND(Work@row = "Artwork", [Type of work]@row = "Bottle Sleeve"), "5100"), IF(AND(Work@row = "Artwork", [Type of work]@row = "Tray"), "5101")

The first part of the formula is good and working and when I copy the same formula to make additional conditions then it's not working.

What I am trying to achieve here is to get my output based on two other columns

Screenshot 2021-12-31 at 2.22.09 PM.png

, see screenshot.

Best Answers

  • AndrΓ©e StarΓ₯
    AndrΓ©e StarΓ₯ Community Champion
    edited 12/31/21 Answer βœ“

    Hi @Regan Raj

    I hope you're well and safe!

    Try something like this. (removed the closing parenthesis in the first part + removed the "" around the number "it would work as it was, but it would be converted to text")

    =
    IF(AND(Work@row = "Artwork", [Type of work]@row = "Bottle Sleeve"), 5100, 
    IF(AND(Work@row = "Artwork", [Type of work]@row = "Tray"), 5101))
    

    Did that work?

    I hope that helps!

    Have a fantastic weekend & Happy New Year!

    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.

  • Regan Raj
    Regan Raj ✭✭✭
    Answer βœ“

    @AndrΓ©e StarΓ₯ : Thanks a lot for the quick response and it's working now.

    Wishing you all the success in the coming year!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!