+ Reply to Thread
Results 1 to 10 of 10

V lookup error

  1. #1
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    V lookup error

    Hello
    i wonder why Vlookup shows "Value not available error", although the relevant value is available and same format.

    Sheet attached, all #N/A already have corresponding values

    Thanks in adbance
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    Re: V lookup error

    And what is the "Column1" value on cell E19

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: V lookup error

    You are looking for an exact match and must therefore include FALSE as a fourth argument
    =VLOOKUP(D20,A:B,2,FALSE))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: V lookup error

    The cells are formatted as Text. Use General or Number and you need to include the 4th 'False' parameter in the VLOOKUP
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: V lookup error

    Because you did not include the last argument for vlookup - is your data sorted (1) or not (0). So excel was seaching to where it thought the match would be, if it couldnt find it in a SORTED range, it returned the cell above

    =VLOOKUP(D2,A:B,2,0)
    this works, but if all you want is the row number, try this, no helper needed...
    =MATCH(D2,$A$2:$A$1334,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    Re: V lookup error

    Actually i want it to match the value of the first match
    so if there are 3 identical values, i want to pick the first one
    Attached Images Attached Images

  7. #7
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    Re: V lookup error

    the first column of the specified range is sorted, i want closest match for search_key be returned.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: V lookup error

    your formula...
    =VLOOKUP(D2,A:B,2)
    is simply nor working. the result...1333...is just teh last row in your range, and that contains HLXU 3684505, so it is not actually matching with anything.

    either the vlookup or the match that I suggested, is doing exactly what you said you wanted.

  9. #9
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    Re: V lookup error

    Many thanks, i got it

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: V lookup error

    Great, happy to help

+ 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. [SOLVED] VLOOKUP, gives #N/A error (if Range lookup=0) or wrong data (if Range lookup=empty)
    By Ebalinska in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-14-2016, 05:55 AM
  2. LOOKUP Error
    By mdt175 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2015, 12:03 AM
  3. Error with 2 lookup vector with 2 lookup result
    By Mdolasiya in forum Excel General
    Replies: 3
    Last Post: 11-06-2014, 06:18 AM
  4. Lookup Error
    By IGHP in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2014, 09:18 PM
  5. H Lookup error
    By frustrated in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-28-2014, 06:13 PM
  6. [SOLVED] lookup - if(is error(vlookup and error messages meanings
    By grphillips in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-18-2013, 07:03 PM
  7. Lookup Error #N/A
    By pansovic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2010, 05:35 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