BMI calculation to state status

milkiet

New Member
Joined
May 28, 2021
Messages
6
Platform
  1. Windows
Hi there and thanks for adding me.
I have added a column in a worksheet to show the status compared to bmi number. I have got the following formula:
=IF(G41<=18.5,"underweight",IF(G41<=24.99,"Normal Weight",IF(G41<=29.99,"Overweight",IF(G41<=39.99,"Obese",IF(G41>=40.01,”Morbidly Obese”)))))

This works fine apart from the last part which displays "#NAME?" instead of "Morbidly Obese"

I can't see where this is going wrong. Any ideas anyone?

Thanks in advance.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi & welcome to MrExcel.
You have the wrong type of quotes on the last part they should be " not ”
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
An alternative approach is to use Lookup.

T202105a.xlsm
GHIJ
320Underweight
3318.5Normal weight
3425Overweight
3530Obese
3640Morbidly Obese
37
38
39
40
4124Normal WeightNormal weight Normal weight
42
4a
Cell Formulas
RangeFormula
H41H41=IF(G41<=18.5,"Underweight",IF(G41<=24.99,"Normal Weight",IF(G41<=29.99,"Overweight",IF(G41<=39.99,"Obese","Morbidly Obese"))))
I41I41=LOOKUP(G41,I32:J36)
J41J41=LOOKUP(G41,{0,"Underweight ";18.5,"Normal weight ";25,"Overweight";30,"Obese";40,"Morbidly Obese"})
 
Upvote 0

Forum statistics

Threads
1,215,639
Messages
6,125,971
Members
449,276
Latest member
surendra75

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top