Displaying text categories depending upon values within a range

Barty

New Member
Joined
Mar 15, 2014
Messages
6
Hi,

I'm a total novice with excel and have been playing around trying to build a tool to help with my PT business.
Basically, I am building a BMI calculator in as part of it and want the cell below where the BMI result comes up as a number, (cell E5) to categorise the number based on my below conditions

<18.5 Underweight
18.5 to 24.9 Normal
25 to 29.9 Overweight
>30 Obese

So far I have explored forums and come up with:

=IF(E5<=18.4,"Underweight",IF(AND((E5>18.5),(E5<24.9)),"Normal",IF(AND((E5>25),(E5<29.9)),"Overweight",IF(E5=<30),"Obese",0)))

This appears to work up until Normal, however not after that.

Could someone please show me where I'm going wrong?!

Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi,

I'm a total novice with excel and have been playing around trying to build a tool to help with my PT business.
Basically, I am building a BMI calculator in as part of it and want the cell below where the BMI result comes up as a number, (cell E5) to categorise the number based on my below conditions

<18.5 Underweight
18.5 to 24.9 Normal
25 to 29.9 Overweight
>30 Obese

So far I have explored forums and come up with:

=IF(E5<=18.4,"Underweight",IF(AND((E5>18.5),(E5<24.9)),"Normal",IF(AND((E5>25),(E5<29.9)),"Overweight",IF(E5=<30),"Obese",0)))

This appears to work up until Normal, however not after that.

Could someone please show me where I'm going wrong?!

Thanks

Try...

=LOOKUP(E5,{0,18.5,25,29.9},{"Underwight","Normal","Overweight","Obese"})
 
Upvote 0

Forum statistics

Threads
1,223,743
Messages
6,174,244
Members
452,553
Latest member
red83

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