Trying to create a reference range with greater than and equal too

Pandorom

New Member
Joined
Oct 5, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I'm very new to using excel, so I am confused.. I am trying to make a number of reference ranges that tell if the value is high or low. So an example would be the reference range is 136 to 145. I would like to be able to put in a number lower and it say low or if its above 145 then it would say high. I figured out how to just do one, =IF(B2<136,"Low",""), but is there away to add to the formula to do both? I feel like it is probably very simple but I don't know.

Also are you able to code a cell to change color in response to the value being higher or lower?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
You can 'nest' IF statements together, so for your example:
Excel Formula:
=IF(B2<136,"Low",IF(B2>145,"High",""))

Note that while there is no effective limit to how deep this nesting can go, my general rule of thumb is to not go beyond about three or four levels of nesting as the formulas become too complex to manage. Other methods are available for those situations.

For the colour coding, have a look into 'Conditional formatting'.
 
Upvote 0
To add, since you're using 365 you can also use the IFS formula
Excel Formula:
=IFS(B2<136,"Low",B2>145,"High",TRUE,"")
 
Upvote 0
You're welcome - glad we could help. Welcome to Mr Excel.
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,114
Members
452,302
Latest member
TaMere

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