+ Reply to Thread
Results 1 to 11 of 11

Vlookup not working ... keeps returning #N/A

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Vlookup not working ... keeps returning #N/A

    Hi all - my vlookups are not working - I am using retail SKU numbers on two different sheets and the vlookup is returning #N/A results for the whole table. An example of my vlookup is below:

    =VLOOKUP(I4,Sheet1!$A$4:$E$42,5,FALSE)

    I Have formatted both tables as Text and then tried it as Numbers. I also removed any spaces.

    Does anyone have any tips or tricks on other things to try? This has happened to me a few times and I would love to find a solution.

    Thank you!

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Vlookup not working ... keeps returning #N/A

    can you post a sample? 99% of the time it's text vs numbers or extra spaces.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    08-08-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Vlookup not working ... keeps returning #N/A

    Attached. The vlookup is in column L on Sheet one. Thank you!
    Attached Files Attached Files

  4. #4
    Forum Guru Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,067

    Re: Vlookup not working ... keeps returning #N/A

    Get rid of the rogue spaces in Col I.

    Also, shouldn't your formula read as
    =VLOOKUP(I4,Sheet2!$A$4:$E$42,5,FALSE)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Vlookup not working ... keeps returning #N/A

    =VLOOKUP(TEXT(TRIM(I3),"0"),Sheet2!$A$4:$E$42,5,FALSE)
    and copy down?

  6. #6
    Registered User
    Join Date
    08-08-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Vlookup not working ... keeps returning #N/A

    It doesn't show that there are any spaces in column I ... the reason it says Sheet1 is because I just copied and pasted that from my actual spreadsheet (where the vlookup is pulling from Sheet1, as opposed to my sample, where it should be pulling from Sheet2)
    Thank you though!

    ---------- Post added at 10:35 AM ---------- Previous post was at 10:31 AM ----------

    Sadly, that didn't work either Not sure what the problem is! I've double checked each element of the vlookup, removed spaces, etc. Any other thoughts?
    Thank you for trying!!

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Vlookup not working ... keeps returning #N/A

    there are spaces in col I (I5 has one at the start of the number) but they are non-breaking spaces not regular spaces. select column I and press ctrl+h, then click in the find box, hold the Alt key and type 0160 on the number keypad and release the Alt key. leave the replace box blank and press 'replace all'

  8. #8
    Registered User
    Join Date
    08-08-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Vlookup not working ... keeps returning #N/A

    I tried it and it didn't work - I've uploaded the updated sample chart here (with correct Sheet references in the vlookup formula). ... any other ideas? Thank you again so much for trying to help!
    Attached Files Attached Files

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Vlookup not working ... keeps returning #N/A

    your lookup table has the numbers stored as text so you need to convert the lookup values too
    =VLOOKUP(TEXT(I3,"0"),Sheet1!$A$4:$E$42,5,FALSE)

  10. #10
    Registered User
    Join Date
    08-08-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Vlookup not working ... keeps returning #N/A

    You are amazing!!! It worked. Thank you SO much

  11. #11
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,452

    Re: Vlookup not working ... keeps returning #N/A

    @ Meghan Butler

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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