return value based on the number that matches any number in three columns

MMM_84

New Member
Joined
Jan 13, 2021
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hello! Could you help me to return the value based on the number that falls between numbers in three columns.
So, I need a function into column J (highlighted in yellow).
Column I has numbers that fall between the numbers in columns B,C and D. Depending where in a range the number, column J should bring a number from column E
Index match or xlookup?

Book1
ABCDEFGHIJ
1
2MinMidMaxLevel Numbersvalue to be returned
35966785685
479859971159
51001141309155
61311431601070
7
8
Sheet1
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hello, how about:

Excel Formula:
=LET(
a,B3:D6,
b,E3:E6,
c,TOCOL(a),
d,TOCOL(IF(SEQUENCE(,COLUMNS(a)),b)),
XLOOKUP(I3:I6,c,d,,-1))
 
Upvote 0
Hello,
There are probably easier formulas with dynamic arrays, but a solution working on XL 2016 is
Excel Formula:
=INDEX($E$3:$E$6;MATCH(VLOOKUP(I3;$B$3:$B$6;1;TRUE);$B$3:$B$6;0))
Supposing your values are ordered from lower to higher when going down.
 
Upvote 0
Solution
Hello,
There are probably easier formulas with dynamic arrays, but a solution working on XL 2016 is
Excel Formula:
=INDEX($E$3:$E$6;MATCH(VLOOKUP(I3;$B$3:$B$6;1;TRUE);$B$3:$B$6;0))
Supposing your values are ordered from lower to higher when going down.
Thanks!!! works perfect
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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