+ Reply to Thread
Results 1 to 6 of 6

vlookup not working

  1. #1
    Registered User
    Join Date
    03-28-2008
    Posts
    57

    vlookup not working

    I have attached the file. Why is this simply vlookup not working?
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,444

    Re: vlookup not working

    Try
    Please Login or Register  to view this content.
    ( LEFT returns a string and your lookup value is a number)

  3. #3
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: vlookup not working

    Dear fredmeister,

    Which result do you want?

    Regards,
    Nandkumar Satpute

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: vlookup not working

    Left is a Text Function and it returns text result. So comparing the Text Number with the real number in your vlookup is causing #N/A error.

    using -- (Unary Operator) in front of Text result or Using Value function will convert the Text Number to Real Number.

    =VLOOKUP(--LEFT(A2,4),Sheet2!A:D,4,0)

    or

    =VLOOKUP(VALUE(LEFT(A2,4)),Sheet2!A:D,4,0)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Contributor
    Join Date
    09-11-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2013
    Posts
    103

    Re: vlookup not working

    Attached is the solution.

    Below is the formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You will need to add in "Value" formula. It will convert the Text to number.

    If it helps you, please consider click on the star .
    Attached Files Attached Files
    Click * to reward me...
    Thank you...

  6. #6
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: vlookup not working

    use following formula

    =VLOOKUP(VALUE(LEFT(A2,4)),Sheet2!$A$1:$D$1,4,FALSE)

    Regards,
    Nandkumar Satpute

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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