Formula for determing what range of numbers a number is in

Sundance_Kid

Board Regular
Joined
Sep 2, 2017
Messages
134
Office Version
  1. 365
Platform
  1. Windows
Hi

I have a number and I need to find out which range it is in between. So for example I need to determine is the number equal to or more than 95 but less than 102 and if it is the answer is "X" or else determine if the number is equal to or more than 102 but equal to or less than 110 then the answer is "Y" or if the number is less than 95 or more than 110 the answer should be "Z".

I am able to determine if the number is equal to or more than 95 but less than 102 with the following formula but I want to extend it to included the other range between 102 and 110. =IF(AND(I69>=B69,I69<D69),"X",Z)

9598102105110

<tbody>
</tbody>


Thanks in advance
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi

I have a number and I need to find out which range it is in between. So for example I need to determine is the number equal to or more than 95 but less than 102 and if it is the answer is "X" or else determine if the number is equal to or more than 102 but equal to or less than 110 then the answer is "Y" or if the number is less than 95 or more than 110 the answer should be "Z".

I am able to determine if the number is equal to or more than 95 but less than 102 with the following formula but I want to extend it to included the other range between 102 and 110. =IF(AND(I69>=B69,I69<d69),"x",z)

95
98
102
105
110

<tbody>
</tbody>


Thanks in advance

I don't think my formula came through

=IF(AND(I69>=B69,I69<D69),"X",Z)

I69 being the number and B69 being 95 & D69 being 102.
</d69),"x",z)
 
Upvote 0
I have a number and I need to find out which range it is in between. So for example I need to determine is the number equal to or more than 95 but less than 102 and if it is the answer is "X" or else determine if the number is equal to or more than 102 but equal to or less than 110 then the answer is "Y" or if the number is less than 95 or more than 110 the answer should be "Z".
I am able to determine if the number is equal to or more than 95 but less than 102 with the following formula but I want to extend it to included the other range between 102 and 110. =IF(AND(I69>=B69,I69MYTABLE
95981021051101Z
95X
102Y
111Z
999Z
93Z
94Z
95X
96X
97X
98X
99XTHE FIRST Z OBTAINED BY
100X
101X=VLOOKUP(A9,MYTABLE,2)
102Y
103Y
104Y
105Yor
106Y
107Y=IF(A9<95,"Z",IF(A9<102,"X",IF(A9<111,"Y","Z")))
108Y
109Y
110Y
111Z
112Z
113Z

<colgroup><col><col span="10"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,825
Messages
6,132,938
Members
449,769
Latest member
jorgemarmo

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