If formula

Options

I am trying to use below formula but it is showing error as Invalid Operation. How to use 'less than equal to' function in 'IF' formula:

=IF([a%]@row > "5%", "Red", IF(AND([a%]@row < = "5%", [c%]@row >= "5%"), "Yellow", "Green")

Answers

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    Options

    Hi @Kamya Pamnani

    I hope you're well and safe!

    Try something like this.

    =IF([a%]@row > 0.05, "Red", IF(AND([a%]@row < = 0.05, [c%]@row >= 0.05), "Yellow", "Green")

    Smartsheet looks at the numbers in a column formatted for percentages as values between 0 and 1. You'd need to use decimal values instead for it to work 

    25% = 0,25 (0.25)

    50% = 0,5 (0.5)

    100% = 1

    Did that work/help?

    I hope that helps!

    Be safe, and have a fantastic week!

    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, Awesome, 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.

  • Kamya Pamnani
    Kamya Pamnani ✭✭✭✭
    Options

    Hi Andree,


    Thanks for sending the answer but the same doesn't work either. Whenever I am using the formula with only"<" it works but it doesn't work for "<=" function.

    Please suggest any other alternative.

    Thanks.

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    Options

    @Kamya Pamnani

    Happy to help!

    Try this.

    =IF([a%]@row > 0.05, "Red", IF(AND([a%]@row <= 0.05, [c%]@row >= 0.05), "Yellow", "Green"))

    Did that work?

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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!