change a column value based on a range from another column

Whats the best way to change a column value based on a range from another column?

I have BMI Column (number) and the Range column (text).

The Range column (Underweight, Healthy, Overweight, Obese) will populate based on the ranges of the BMI column this range can vary between (18.5 - 40). The ranges are as (< 18.5 = Underweight), (18.5 and 24.9 =Healthy), (25 and 29.9 = Overweight) and (30 and 39.9 = Obese).

I have tried looking through Expressions, unsure which would best suit this and how to construct the formula accordingly. Help much appreciated. 

 

Thanks in advance.

Solved Solved
0 2 117
1 ACCEPTED SOLUTION

Please try using IFS()

something like 

IFS( [BMI]< 18.5, " Underweight",
[BMI]<=24.9, "Healthy",
[BMI]<=29.9, "Overweight",
[BMI]> 29.9 , "Obese" )

IFS() - AppSheet Help

 

View solution in original post

2 REPLIES 2

Please try using IFS()

something like 

IFS( [BMI]< 18.5, " Underweight",
[BMI]<=24.9, "Healthy",
[BMI]<=29.9, "Overweight",
[BMI]> 29.9 , "Obese" )

IFS() - AppSheet Help

 

Thank you so much, this is exactly what I needed. I can add this to so many other tables now and projects. Magic, thank you once again.

Top Labels in this Space