If a value is included in a range between 2 cells return value related from another range

nunomd

New Member
Joined
Sep 1, 2011
Messages
16
Hi. I would like to use a excel formula to resolve this problem.
Column C is the anwser I pretend.
In the same cell it will return the name of the correct range.
Ex: Between 200 and 300 there are numbers involved that are included in Range 1 and Range 2 (see second table)

CellABC
1FromToResult: (How to return this value?)
2200300Range1, Range2
3301400N/A
4401500N/A

<tbody>
</tbody>

Table to Check Value to Return:
CellABC
1120280Range 1
2281300Range 2
3600650Range 3

<tbody>
</tbody>

Thank you.
Best regards
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi. I would like to use a excel formula to resolve this problem.
Column C is the anwser I pretend.
In the same cell it will return the name of the correct range.
Ex: Between 200 and 300 there are numbers involved that are included in Range 1 and Range 2 (see second table)

CellABC
1FromToResult: (How to return this value?)
2200300Range1, Range2
3301400N/A
4401500N/A

<tbody>
</tbody>

Table to Check Value to Return:
CellABC
1120280Range 1
2281300Range 2
3600650Range 3

<tbody>
</tbody>

Thank you.
Best regards


Hello, can anybody help me in this question?
Thank you!
 
Upvote 0
A lookup table can help you:

*ABCDE
1Low limitRange
20Range 1My Number300
3201Range 2My RangeRange 2
4301Range 3
5401Range 4
6501Range 5

<tbody>
</tbody>

In cell E3, any of these formulas will work:

=VLOOKUP(E2, $A$2:$B$6, 2, 1)
=LOOKUP(E2, $A$2:$A$6, $B$2:$B$6)
=INDEX($B$2:$B$6, MATCH(E2, $A$2:$A$6, 1))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,945
Messages
6,127,840
Members
449,411
Latest member
adunn_23

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