If Then Help

I'd like to have a main input cell for # of items being shipped. Sheet is being set up to ship 40 items. I'd like to have 4 other cells which populate based on the main cell's value.

(Example 1)

Main Cell: 5

Cell 1 (0-10 Items): 5

Cell 2 (10-20 Items): 0

Cell 3 (20-30 Items): 0

Cell 4 (30-40 Items): 0


(Example 2)

Main Cell: 25

Cell 1 (0-10 Items): 0

Cell 2 (10-20 Items): 0

Cell 3 (20-30 Items): 25

Cell 4 (30-40 Items): 0


Can I use If then statements on this?

Answers

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    If you want to enter the number in "Main Cell" and then it automatically populate one of the 4 cells below it depending on the number, you would use 4 different IF statements (one in each of the 4 cells).


    =IF(AND([Column Name]1 >= 0, [Column Name]1 <= 10), [Column Name]1)

    =IF(AND([Column Name]1 >= 11, [Column Name]1 <= 20), [Column Name]1)

    =IF(AND([Column Name]1 >= 21, [Column Name]1 <= 30), [Column Name]1)

    =IF(AND([Column Name]1 >= 31, [Column Name]1 <= 40), [Column Name]1)

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!