I've been trying to wrap my head around this one for a few days. I have two separate semi-working formulas but when I try to "combine" them I get lost. I've googled but I just haven't seen any answers that work yet.
Basically I have a Quote Log that tracks Company Name, State, Contact Name, Phone Number, etc. I would like the formula to pull the area code from the phone number cell and automatically place the State in another cell. If the phone number cell is empty, show nothing in the state cell. Seems simple enough, especially with two sort-of-working formulas.
The two formulas are:
1) =IF(ISNA(VLOOKUP(D8, CODES!$A$2:$B$366, 2, FALSE))=TRUE, "", VLOOKUP(D8, CODES!$A$2:$B$366, 2, FALSE))
2) =VLOOKUP(VALUE(LEFT(D9,3)), CODES!$A$2:$B$366, 2, FALSE)
CODES is the other sheet that has the area code lookup list, obviously.
I'm new to posting in this forum so I'm not sure if this is enough info or too much. If I need more detail I'll gladly give more.
I'm going to attach a sample file and hopefully it's self-explanatory.
QUOTE LOG SAMPLE.xlsm
Please Excel Guru's... lend me your assistance.
Bookmarks