Simple question- Vlookup range within a cell

jham55

New Member
Joined
Feb 11, 2020
Messages
15
Office Version
  1. 365
Hey folks, I have a quick question. In excel if you are doing a vlook up for a value and the look up column is a range in a cell, will excel recognize it? I'm looking for an option. So if my look up value is 2 and the column array is stored as '1-3' in a cell , I'm thinking it will not recognize it. any thoughts?

thanks
John
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Enter the minimum value for each range in the cell rather than the actual range, sort the data by that column in ascending order then use approximate match.

Note that it may not work correctly if there are gaps in the ranges.
 
Upvote 0
Enter the minimum value for each range in the cell rather than the actual range, sort the data by that column in ascending order then use approximate match.

Note that it may not work correctly if there are gaps in the ranges.
Thank you.. its possible but there are like 17K values to look up. Some of the values are in the middle, beginning or end of the range. I cant help that. I can break the range into single values but there are thousands of them.
 
Upvote 0
It doesn't matter where they are in the range. Using the method that I suggested, any number greater than 1 but less then the next number in the column can be matched to 1, but no number can be matched to 1-3. I've included a simple example below.

Book1
ABCDE
1MinimumRange21-3
211-344-19
344-1925>20
420>2099999999>20
Sheet1
Cell Formulas
RangeFormula
E1:E4E1=VLOOKUP(D1,$A$2:$B$4,2)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,818
Messages
6,181,151
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