Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: VLOOKUP Returns #NA when data is present
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Mar 2015
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default VLOOKUP Returns #NA when data is present

    I cant wrap my head around this error, I have 2 excel sheets, I am using VLOOKUP to add new pricing from the new sheet to the old sheet, I have triple checked a couple of numbers and noticed some exists on both sheets. Yet I it inputs #NA in that cell, I have cross checked a few numbers and saw that the data is visibly on both sheets. What am i doing wrong?

    Formula: =VLOOKUP(D2,[Book1]Sheet1!$A$2:$E$139,5,FALSE)

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,148
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: VLOOKUP Returns #NA when data is present

    Make sure that they are numbers on both sheets, rather than numbers on one & text on the other.
    Also check they are an exact match, depending on how the numbers were created you could have a minor difference due to "floating point errors"
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  3. #3
    Board Regular
    Join Date
    Mar 2015
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VLOOKUP Returns #NA when data is present

    I cleaned up the sheet and used =LEN() to see any trailing spaces or invisible characters, I have removed any product numbers that have letters, yet still getting the #NA error. Any chance you'd be willing to take a look at this?

  4. #4
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,760
    Post Thanks / Like
    Mentioned
    57 Post(s)
    Tagged
    11 Thread(s)

    Default Re: VLOOKUP Returns #NA when data is present

    You say two different sheets...
    Are those sheets in different files?
    If not, what is with the [Book1] reference? It should be unnecessary if both sheets are in the same file.
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

  5. #5
    Board Regular
    Join Date
    Mar 2015
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VLOOKUP Returns #NA when data is present

    Quote Originally Posted by Joe4 View Post
    You say two different sheets...
    Are those sheets in different files?
    If not, what is with the [Book1] reference? It should be unnecessary if both sheets are in the same file.
    I just put them in one file, two seperate worksheets. They were in two different files.

    I just did a search for a number 714116, this number is in both sheets, yet when i do a search, it tells me nothing was found. I am not sure what im doing wrong at this point.

  6. #6
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,760
    Post Thanks / Like
    Mentioned
    57 Post(s)
    Tagged
    11 Thread(s)

    Default Re: VLOOKUP Returns #NA when data is present

    If they are both in the same file now, remove the [Book1] reference, and make sure that you have the right sheet reference.
    Or try using a named range instead, and referencing that.
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

  7. #7
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,148
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: VLOOKUP Returns #NA when data is present

    For that number on both sheets use
    =LEN()
    and
    =ISNUMBER()
    do you get the same results?
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  8. #8
    Board Regular
    Join Date
    Mar 2015
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VLOOKUP Returns #NA when data is present

    Quote Originally Posted by Fluff View Post
    For that number on both sheets use
    =LEN()
    and
    =ISNUMBER()
    do you get the same results?
    I do see the same results yes, a total of 6 characters. Still getting an #NA

  9. #9
    Board Regular
    Join Date
    Mar 2015
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VLOOKUP Returns #NA when data is present

    Quote Originally Posted by Joe4 View Post
    If they are both in the same file now, remove the [Book1] reference, and make sure that you have the right sheet reference.
    Or try using a named range instead, and referencing that.
    I tried that, nothing changed.

  10. #10
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,148
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: VLOOKUP Returns #NA when data is present

    Does the ISNUMBER return true for both?
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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