Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Different formula for a cell basing on condition

Hi All,


How can i apply different formula basing on cell value?

For instance

i have a columns

Type, Duration, Original

If type = "Sub-Task" I need formula for Original "= Duration*1440"

If type = "Story " I need formula for Original "=SUM(CHILDREN())"

i tried

IF(Type = "Sub-Task" , "=Duration*1440", "=SUM(CHILDREN())")

but that doesnt work.


thanks

Answers

  • Community Champion

    Hi Pavel,

    Try something like this.

    =IF(Type@row = "Sub-Task"; Duration@row * 1440; IF(Type@row = "Story"; SUM(CHILDREN())))

    The same version but with the below changes for convenience.

    =IF(Type@row = "Sub-Task", Duration@row * 1440, IF(Type@row = "Story", SUM(CHILDREN())))
    

    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

    Remember! Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. 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.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions