J
john c
In Column A I have every area code in the US. 201, 202,
203....all the way to the last one.
In Column B I have the US State that matches that area
code. NJ, DC, CT.....etc.
I have it set up so when you put a 9 digit phone number in
Column D, it uses VLOOKUP to put that corresponding US
State in Column E. That formula is =VLOOKUP(VALUE(LEFT
(D1,3)),A:B,2,FALSE).
Seem simple? OK....
I need to reconfigure this formula to recognize the first
3 digits, and when that equals 'TX' for Texas, I need it
to read the next 3 digits so that it can spit out the City
AND State. This is the problem.....I am not sure where I
should insert the cities into my raw data. For example,
in Column A where I have area code 210 should I add 210566
for Dallas, and then keep adding all of the cities within
area code 210 underneath? Do I need to make a separate
list of Texas cities?
I think it may be incorporating an IF Statement of some
kind onto my original VLOOKUP formula.
If I'm not totally clear please tell me. You guys have
been a great help, I just need this last bit!
203....all the way to the last one.
In Column B I have the US State that matches that area
code. NJ, DC, CT.....etc.
I have it set up so when you put a 9 digit phone number in
Column D, it uses VLOOKUP to put that corresponding US
State in Column E. That formula is =VLOOKUP(VALUE(LEFT
(D1,3)),A:B,2,FALSE).
Seem simple? OK....
I need to reconfigure this formula to recognize the first
3 digits, and when that equals 'TX' for Texas, I need it
to read the next 3 digits so that it can spit out the City
AND State. This is the problem.....I am not sure where I
should insert the cities into my raw data. For example,
in Column A where I have area code 210 should I add 210566
for Dallas, and then keep adding all of the cities within
area code 210 underneath? Do I need to make a separate
list of Texas cities?
I think it may be incorporating an IF Statement of some
kind onto my original VLOOKUP formula.
If I'm not totally clear please tell me. You guys have
been a great help, I just need this last bit!