If Statement Returning Different value if a cell has a single digit in it versus a two digit number

See the sheet below. In the SLA Tally column I want it to look at the [Age of Defect] and if it is larger than [P SLA] return that it is "Outside SLA".

If you see on Row 4, it works correctly. It is recognizing that age of the defect is 7, and it is above the SLA range of 7, and returning "Outside SLA".

However, when the [Age of Defect] column goes to a double digit number, in this instance 12, it then outputs "In SLA"

The if statement formula in that column is the following:

=IF([Age of Defect]@row > [P SLA]@row, "Outside SLA", "In SLA")


image.png


NOTE: The [P SLA] column value and the [Age of Defect] column values are results of a formula in those columns.

For instance, [P SLA] value is:

=IF(Criticality@row = "P2 - Major", "3", IF(Criticality@row = "P1 - Critical", "3", IF(Criticality@row = "P3 - Minor", "4", IF(Criticality@row = "P4 - Low", "5", IF(Criticality@row = "Enhancement", "30")))))

When the number in a column is obtained via a formula, will IF statement not work correctly?

thanks,

Shaun

Tags:

Best Answers

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!