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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,216,125
Messages
6,128,998
Members
449,480
Latest member
yesitisasport

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