# RYB Inventory Tracking

Options

Hello all,

I am trying to make a formula with RYB for inventory tracking.

Green will show when QTY ON HAND > QTY, and CURRENTLY ON ORDER = Yes

Yellow will show when QTY ON HAND is less than 5

Red will show when QTY ON HAND is less than 2

• ✭✭✭✭✭✭
Options

Hi Sean,

Try something like this.

=IF(AND([QTY ON HAND]@row > QTY@row; [CURRENTLY ON ORDER]@row = "Yes"); "Green"; IF(AND([QTY ON HAND]@row <> ""; [QTY ON HAND]@row < 2); "Red"; IF(AND([QTY ON HAND]@row <> ""; [QTY ON HAND]@row < 5); "Yellow")))

The same version but with the below changes for convenience.

=IF(AND([QTY ON HAND]@row > QTY@row, [CURRENTLY ON ORDER]@row = "Yes"), "Green", IF(AND([QTY ON HAND]@row <> "", [QTY ON HAND]@row < 2), "Red", IF(AND([QTY ON HAND]@row <> "", [QTY ON HAND]@row < 5), "Yellow")))

Depending on your country/region, you'll need to exchange the comma to a period and the semi-colon to a comma.

Did that work?

I hope that helps!

Be safe and have a fantastic week!

Best,

Andrée Starå

Workflow Consultant / CEO @ WORK BOLD

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!