Percentages as progress bars

Options
JennyB.
JennyB. ✭✭
edited 04/25/24 in Formulas and Functions

Hi we are using the below formula to calculate a percentage which is then reflected by a progress bar, when the overall percentage is at 49% the progress bar is showing as "full" instead of reflecting the criteria of the formula underneath

=IF([Overall %]@row < 0.25, "Empty", IF(AND([Overall %]@row >= 0.25, [Overall %]@row <= 0.49), "Quarter", IF(AND([Overall %]@row >= 0.5, [Overall %]@row <= 0.74), "Half", IF(AND([Overall %]@row >= 0.75, [Overall %]@row <= 0.99), "Three Quarter", "Full"))))

Best Answer

  • Paul McGuinness
    Paul McGuinness ✭✭✭✭✭✭
    Answer ✓
    Options

    Hi @Jenny B

    Looking at the formula, you have a missing area between 49% and 50%

    So if you change the criteria from <=0.49 to <0.50

    As below that should fix it.

    =IF([Overall %]@row < 0.25, "Empty", IF(AND([Overall %]@row >= 0.25, [Overall %]@row < 0.50), "Quarter", IF(AND([Overall %]@row >= 0.5, [Overall %]@row <= 0.74), "Half", IF(AND([Overall %]@row >= 0.75, [Overall %]@row <= 0.99), "Three Quarter", "Full"))))

    Hope that helps

    Thanks

    Paul

Answers

  • Paul McGuinness
    Paul McGuinness ✭✭✭✭✭✭
    Answer ✓
    Options

    Hi @Jenny B

    Looking at the formula, you have a missing area between 49% and 50%

    So if you change the criteria from <=0.49 to <0.50

    As below that should fix it.

    =IF([Overall %]@row < 0.25, "Empty", IF(AND([Overall %]@row >= 0.25, [Overall %]@row < 0.50), "Quarter", IF(AND([Overall %]@row >= 0.5, [Overall %]@row <= 0.74), "Half", IF(AND([Overall %]@row >= 0.75, [Overall %]@row <= 0.99), "Three Quarter", "Full"))))

    Hope that helps

    Thanks

    Paul

  • JennyB.
    JennyB. ✭✭
    Options

    Thanks so much, that has done the trick! :)

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!