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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

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