+ Reply to Thread
Results 1 to 7 of 7

Left function on VLookup

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Left function on VLookup

    Hi everyone,

    I'm trying to get the Left function working on a vlookup and I'm not having any success. I have the following formula:

    =VLOOKUP(LEFT(A3,8)+0,'...Consolidated Listing'!E$3:CG$6472,13,FALSE)

    The '...Consolidated Listing is there purposely. I keep getting a #VALUE! error. Any ideas what I'm doing wrong? The value in A3 is alpha-numeric and is generated from its own Right function formula.

    Thanks!!

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Left function on VLookup

    Are the values in your lookup column stored as numbers, or as text? It may be best to post a sample workbook.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Left function on VLookup

    Its both: alpha-numeric.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,873

    Re: Left function on VLookup

    If you are getting #VALUE it implies that the LEFT(A3,8)+0 is an invalid operation. What do you have in A3, and what does LEFT(A3,8) return?

    Pete

  5. #5
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Left function on VLookup

    The value in A3 is generated by the formula:

    =RIGHT(B3,13)

    The result is alpha-numeric, i.e. AB123456.xlsx

    So i wanted the left function to take just the first 8 characters.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,873

    Re: Left function on VLookup

    But that will give you AB123456, and if you try to add zero onto that you will get the #VALUE error. What is the purpose of the +0? That is usually used to convert a text string which only contains digits into a proper number - are you really after 123456?

    Pete

  7. #7
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Left function on VLookup

    Crap, got it working. Didn't need the +0 bit. Thanks everyone.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can I use LEFT function in VLOOKUP?
    By greyscale in forum Excel General
    Replies: 9
    Last Post: 06-03-2021, 09:55 AM
  2. [SOLVED] VLOOKUP with LEFT function
    By nislam123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2013, 05:03 PM
  3. vlookup with left function
    By bronkista in forum Excel General
    Replies: 5
    Last Post: 06-22-2011, 04:09 PM
  4. VLOOKUP w/ LEFT Function
    By AlanH in forum Excel General
    Replies: 10
    Last Post: 12-07-2009, 08:12 PM
  5. Vlookup and left function
    By Corey Osborn in forum Excel General
    Replies: 3
    Last Post: 03-23-2006, 02:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1