I don't think Vlookup is going to be my solution but it's close to what I want it to do. In Sheet 1, I have a list of ID numbers with blank columns of CITY.
In Sheet 2, I have a list of ranges of ID Numbers that is associated with a city.
I need a formula or VBA code that will go through each of the ID numbers in Sheet 1 against the ranges in Sheet 2 and return the city associated in Sheet 2 to Sheet 1.
I'm very familiar with Vlookup and have used it extensively but don't feel like it is going to work here. I'm thinking perhaps VBA but hoping for a simple formula. Thank you!
Sheet 1
Sheet 2
In Sheet 2, I have a list of ranges of ID Numbers that is associated with a city.
I need a formula or VBA code that will go through each of the ID numbers in Sheet 1 against the ranges in Sheet 2 and return the city associated in Sheet 2 to Sheet 1.
I'm very familiar with Vlookup and have used it extensively but don't feel like it is going to work here. I'm thinking perhaps VBA but hoping for a simple formula. Thank you!
Sheet 1
ID_NUMBER | CITY |
5 | |
15 | |
29 | |
31 | |
44 | |
58 |
Sheet 2
CITY | BEGIN_ID_NUMBER | END_ID_NUMBER |
LOS | 1 | 10 |
SEA | 11 | 20 |
LAS | 21 | 30 |
POR | 31 | 40 |
DAL | 41 | 50 |
SFO | 51 | 60 |