# Multiple IF & AND statement together

Options
✭✭✭

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

, see screenshot.

• ✭✭✭✭✭✭
edited 12/31/21 Answer ✓
Options

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.

• ✭✭✭
Options

@Andrée Starå : Thanks a lot for the quick response and it's working now.

Wishing you all the success in the coming year!

• ✭✭✭✭✭✭
edited 12/31/21 Answer ✓
Options

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.

• ✭✭✭
Options

@Andrée Starå : Thanks a lot for the quick response and it's working now.

Wishing you all the success in the coming year!

• ✭✭✭✭✭✭
Options

Excellent!

You're more than welcome!

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!