Formula Help: Unparseable

Hello - I accidentally deleted all my formulas from this sheet and recovered the text, but it's not working in my sheet anymore. I've tried calling helpdesk and we couldn't figure it out.

I have a formula to count all "yes" answers. Then a formula to calculate the % of "yes". The formula that USED to work was this one which would give a red/green/yellow "health" of that score. What am I missing?


Thanks!!!


Best Answer

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭
    Answer ✓

    Hey @Alicia Penner

    The unparseable is because the middle AND clause is not closed off. You also might be missing an ending parenthesis. However, another approach is not to use AND clauses at all but take advantage of the fact that a formula stops when the first 'true' is found.

    =IF(Risk@row>=0.79, "Green", IF(Risk@row>=0.51, "Yellow", IF(Risk@row<0.5, "Red")))

    Will this work for you?

    Kelly

Answers

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭
    Answer ✓

    Hey @Alicia Penner

    The unparseable is because the middle AND clause is not closed off. You also might be missing an ending parenthesis. However, another approach is not to use AND clauses at all but take advantage of the fact that a formula stops when the first 'true' is found.

    =IF(Risk@row>=0.79, "Green", IF(Risk@row>=0.51, "Yellow", IF(Risk@row<0.5, "Red")))

    Will this work for you?

    Kelly

  • Thank you Kelly!!! Yes, I see that now, that's much cleaner...


    I really appreciate it.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!