Performing a VLOOKUP with multiple ranges that are not joined together

Carkcark

New Member
Joined
Dec 13, 2016
Messages
9
Hi all,

Still a bit of a novice at Excel wizardy, but I have a range of serial numbers that do not touch together. My aim is to have a cell that I input a serial number into and I want another cell via a formula most likely via a vlookup (unless there is a better way that you clever people can suggest) that will identify if the serial number I have entered falls within one of the many different ranges.

These are the ranges I am using. The way I would like it to work is that I type in to a cell "ST84210", the cell then works down the 3rd column and stops at ST84209 and then checks to see if "ST84210" is between ST84209 and ST84218.

What formula should I be using? Any templates would be greatly appreciated as my google searching hasn't led me to the solution.


Range:fromST82307toST82309
Range:fromST82335toST82378
Range:fromST82385toST82497
Range:fromST82499toST82506
Range:fromST82550toST82606
Range:fromST82617toST82626
Range:fromST83896toST83905
Range:fromST84209toST84218
Range:fromST84224toST84236
Range:fromST86138toST86138
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I put my search value in cell H1 and your data in cell A1:E10.

I amended Column A to Read; Range: 1, Range: 2, Range:3 and so on and used this as the return column. I assume there may be another with a product name or some such unique identifier

In cell H2 I used the following:

Excel Formula:
=IF(XLOOKUP(H1,C1:C10,A1:A10,"",-1,1)=XLOOKUP(H1,E1:E10,A1:A10,"",1,1),XLOOKUP(H1,C1:C10,A1:A10,"",-1,1),"Not in range")
 
Upvote 0

Forum statistics

Threads
1,214,576
Messages
6,120,350
Members
448,956
Latest member
Adamsxl

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