View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SamB SamB is offline
external usenet poster
 
Posts: 10
Default VLOOKUP function with embedded LEFT

the phone number is 419-490-XXXX
the formula I am using is: =VLOOKUP(LEFT(F2,3),Sheet2!A1:B335,2,FALSE)

If I remove the LEFT statement and hardcode the 419 in as the lookup, it
works. If I use the formula, it returns a #N/A

"cm" wrote:

can you post the formula and phone number example please
--
hope to help,
cm


"SamB" wrote:

I am using a VLOOKUP function to look up what State and area code is from.
The lookup value is being calculated by using a LEFT formula to pull the area
code from a cell where the full phone number is located. However, the LEFT
formula is adding " on each side of the area code when it calculates which
leads to an error in the lookup. Is there any way around this?