Comments on: 6 Reasons Why Your VLOOKUP is Not Working

The VLOOKUP function is the most popular lookup and reference function in Excel. It is also one of the trickiest and the dreaded #N/A error message can be a common sight. This article will look at the 6 most common reasons why your VLOOKUP is not working. Continue reading

Comments page 4. Total comments: 223

  1. I have a VLOOKUP problem. I am trying to put the text relating to health hazards into a risk assessment form. So if I select say H302 it puts the text in correctly but other values (they are formatted as text) such as H302+H312 (no spaces) it returns the value for H301 not H302+H312. What am I doing wrong

    1. Sorry should say H302 not H301

      1. Hi Gerry,

        Apologies because I am not completely sure what you mean. First thought is to check you have entered False or 0 in the last VLOOKUP argument, so it is not dependent upon order.

        I hope you solve the mystery.

        Alan

        1. Alan,

          Thank you, I had omitted the FALSE entry. Everything is fine now.

          Gerry

          1. Great to hear. Thanks for letting me know Gerry.

  2. Hello Alan,

    My vlookup values are too lengthy -
    eg values:
    1) MCDK904745/MCDK904746;ZCL_IM_CRM_ORDERADM_H_BADI IF_EX_CRM_ORDERADM_H_BADI~CRM_ORDERADM_H_MERGE
    2) MCDK904884/MCDK904885;ZCL_IM_CRM_ORDERADM_I_BADI IF_EX_CRM_ORDERADM_I_BADI~CRM_ORDERADM_I_MERGE

    Thus, when the file is doing a Vlookup for smaller values, they are present, but pulling #NA for these big values. These values are the result of a report so I cannot change these values. But based on these values, I will have to pull data from other columns.

    Please advice; what exactly am i missing here and how to tackle this issue

    Thanks a lot in advance for all your help

    Best regards,

    Manish

    1. Hi Manish,

      Th eproblem is that it does not like the Tile "~" in the text. You may need to find a way of removing or replacing this for the purpose of the lookup.

      Don't need to remove it from the cell if important. Just temporarily for the lookup. Could use the SUBSTITUTE function in the VLOOKUP.

      Alan

  3. My vlookup is only working for the top half of my spreadsheet and then stops working on any cell past row 270. My vlookup table is a named range, first column in order by dates, returning column is to the left of the reference column and formatting matches and is not text. Anyone have a clue how to fix it?

    1. Hi Judy, If the VLOOKUP does not look past row 270 I would check out the named range as that would seem the problem. You can edit this named range from the Formulas tab and the Name Manager.

      The formatting of the lookup value and first column of the named range must be matching. And the col index num (returning column) must be to the right of the reference column.

      The problem in this article on VLOOKUP cannot look to the left can help with this.

  4. another tip: if you're looking up numbers, make sure they are not 'numbers formatted as text.' They'll break the formula.

    1. Thanks Bill.

      Yes to add to that... the formatting of the lookup value and the first column of the table array must match. Whether they both be numbers, or both be numbers formatted as text, they must be the same.

  5. I have tried all the solutions the article mentioned, still failed then I tried this, always start the looking table with the value you are looking for in the first column e.g. VLOOKUP(sheet1!A2, sheet2!$C$2:$E$84, 1, FALSE). That is you are looking for value in column C in sheet2 that matches value in column A in sheet1. It is magic! to solve a problem of VLOOKUP that happens when we copy data from different data sources.

    1. Thanks for the tip JimmyNZ.

  6. Yes VLOOKUP will only return the first match. You can use a PivotTable to perform actions like show all invoice # for a particular aircraft.

    Otherwise if you wish to populate a bunch of cells with this info then you are looking for a macro probably.

  7. Hi! I worked in airline company and one task I have is to matched the invoice # to a particular aircraft
    I used vlookup but it will only return the first match. Sometime an aircraft comes multiple times in a month. How do I solve this?

    1. Yes VLOOKUP will only return the first match. You can use a PivotTable to perform actions like show all invoice # for a particular aircraft.
      Otherwise if you wish to populate a bunch of cells with this info then you are looking for a macro probably.

  8. Thank you guys, great page!

  9. Thank you very much!! It worked. I forgot to lock my table.

  10. columns values same but rows values change how can use vlookup formula

    E.g.

    Same Change Value
    Name AAAA BBBB CCCC DDDD
    A 15 12 16 22
    B 45 26 33 99
    C 88 33 78 98
    B 22 34 56 37

  11. Hi,

    I’m trying to use VLOOKUP to look up values with a combination of FS500000, 1000000, F500000. The VLOOKUP is finding combination FS500000 and F500000, however fields with 1000000 are showing the #NA error.
    The cells are formatted as general (also tried switching to text), i've removed "hidden" fields and inserted TRIM within the formula, but still no luck.

    It’s just a simple VLOOKUP formula of =VLOOKUP(A9,Sheet2!A1:K10000,6,FALSE)

    Any help would be appreciated.
    Thanks.

    1. Hi Simon,

      I did suspect this would be due to the formatting. General is not adequate, Excel will still view 1000000 as a number.

      Formatting as text is good. Just ensure the lookup value and the first column of the table array are the same format. So both need to be text.

      Hope it works out.

      Alan

  12. I keep receiving a #REF! error when using a VLOOKUP between two workbooks on a network share.

    If I have the VLOOKUP workbook open (showing the #REF! errors) and then I open up the workbook that contains the table array - then the #REF! errors disappear and the cells contain the correct data. It seems as if I must have the source workbook open in order for the link between the two to function correctly. Do you have any suggestions that I could try?

  13. i make a table using vlookup but its not working properly.
    in same row some times show result okay some times not okay. how to resolve. pls help

    1. I can't really explain without more information. Maybe check the typing of the entries.

      You say it works for some and not others. Sounds like a mis-type on those entries not working. Or maybe the second reason above.

  14. I am unable to do vlookup between 2 google sheets. 2 sheets are not getting linked.

    1. I do not use Google Sheets but am under the impression it works in a similar way. I would re-check the VLOOKUP for potential mistake.

  15. can someone please help urgently. i am trying to find the status for the sales but it is only working for the price. pleasee help!!! i don't know what to do!!

    USE FUNCTION
    Vlookup IF
    Brand Products Quantity Price Sales Status Tax
    Samsung Projector 15 $1,500.00 $22,500.00 Poor
    HP L Printer 20 $1,200.00 $24,000.00 Poor
    APPLE Mac/Air 5 $2,200.00 $11,000.00 Poor
    Samsung Laptop 10 $1,600.00 $16,000.00 Poor
    HP Camera 25 $800.00 $20,000.00 Poor
    Samsung Galaxy tab 12 $1,200.00 $14,400.00 Poor
    ACER Netbook 18 $900.00 $16,200.00 Poor
    DELL DUO/Laptop 13 $2,500.00 $32,500.00 Poor
    APPLE Ipad 4 16 $1,400.00 $22,400.00 Poor
    TOTAL =>
    STATUS more than $30,000.00 Excellent
    more than $25,000.00 Good
    more than $20,000.00 Average
    more than $15,000.00 Trial
    less than $15,000.00 Poor

    TAX more than $30,000.00 25% Of SALES
    more than $25,000.00 20%
    more than $20,000.00 15%
    more than $15,000.00 10%
    less than $15,000.00 5%

  16. Alan,Thank you very much!!!!!

  17. Another issue can be "unknown characters" instead of spaces being used. I was looking at a file with 2 sets of data that looked the same, but they were extracted by different means from a database, and on one set of data, spaces were not spaces but some other character. Found it by checking if 2 items that look identical were actually identical (they weren't, according to Excel), and the only possible characters that could be different were those I couldn't see, i.e. spaces.

    1. Yes sometimes data needs to be cleansed after importing from a database before formulas such as VLOOKUP can be run.

      Text functions such as SUBSTITUTE and TRIM are great for this sort of tasks. The Find & Replace and Power Query tools are also brilliant for cleansing data.

  18. i want to use vlookup function my data have duplicate value but i don't want to remove it ,so i want use vlookup function but it gave me the first value of duplicate value i want to find the second value that belong to duplicate please help me

    1. Hi Farid,

      Check out this video - https://youtu.be/QAZ3L6xbNJc

      It shows how to use VLOOKUP to return the last match if there are duplicates. You can adapt this easily for the 2nd match though.

      Alan

  19. Hi Alan
    I'm doing a VLOOKUP which I do every month to put dates next to asset ID numbers. My LOOKUP results are exactly the same for every ID number when i copy down my formula. So the results for the first row are correct but the rest are wrong as they're the same as the first.

    1. Hi Mel,

      It sounds like your lookup_value is absolute so is not changing when you copy the formula.

      You might need to remove the dollar signs from the first part of your VLOOKUP.

      Alan

  20. While selecting rows and col in vlookup formula (the area where to search) the row col reference (eg. 8RX4C) is not displaying, It is getting difficult to count manually for larger tables.

    Please help me on this issue

    Thanks in advance

    1. I'm struggling a little with the question but I think you are asking about entering the col index num when using a big table.

      In such an example the MATCH function can be used to look along the header row and locate the column number for you. This is done in a similar way to the 5th example of this tutorial and in the link below.

      http://www.computergaga.com/tips/lookup_formulas/two_way_lookup_using_index_and_match.html

  21. Hello, Please help me understand why my vlookup formula stops working after 10 matches. My formula is very simple: =VLOOKUP(A7,'compiled responses'!B7:C804,1) my data is very simple: column "a" has numbers, column "b" has numbers

    col A col B
    404523 404523
    447135 447135
    447350 447135 this is where the formula stops working as it returns the incorrect value and then the values become N/A.

    I have checked the data is has no blanks, both columns are general input.

    I look forward to your assistance.

    Kindly,
    DH

    1. I think your VLOOKUP by the sound of it is comparing columns A and B. And in this case it is stopping at that point because it is not a match i.e. 447350 is not equal to 447135.

  22. number could also be stored as text

    1. Very true. The formatting of the values stored and the one searched for must be consistent.

      1. Hi. Thanks for your reply. Unfortunately, it's still not working, even with all values consistent. Totally baffled!

  23. Hi - VLOOKUP is working fine for me apart from only returning the first letter, i.e returning only 'J' instead of John. Any ideas?

    1. Not a clue. VLOOKUP will return all of the content from the cell, so as long as the full name is in there it will work.

  24. HI

    I want to use VLOOKUP with two diffrent spreadsheet which containt no match value on both, in that case is it possible to apply VLOOKUP in this manner??

    1. It is possible to apply a VLOOKUP to two different spreadsheets. Ensure both workbooks are open when you write the VLOOKUP.

      Not sure what you mean by the contain no match on both, but VLOOKUP can help check for matches so sounds like it would work.

  25. Hi Alan...

    Do you have any idea why my VLOOKUP stopped refreshing automatically for ALL my spreadsheets. In your example, when I change I3, I actually have to click into the formula in J3 and hit enter for it to pull the refreshed value.

    1. Hi Carlo,

      I think the cells containing the VLOOKUP's are formatted as text. I would select the cells and check the formatting on the Home tab.

      It may also be that you have manual calculation switched on. Click the Formulas tab and then Calculation Options.

      Alan

  26. Why VLOOKUP with "TRUE" condition is not working on dates?

    1. It should work with dates no problem. Ensure the table is sorted in earliest to latest by the date.

  27. Thank you, the 'VLOOKUP cannot look to its left' was my pain was my issue. Totally unintuitive

  28. VLOOKUP Cannot Look to its Left was my issue.. thanks!

  29. Thank you Alan, you helped me with The Table has got Bigger.

  30. Thank you! My error wasn't any of these, but it was good to be encouraged to look through everything piece by piece. Turns out I had the initial column and the lookup_value formatted differently--one was Number and the other wasn't (somehow...) So, another goofy mistake, but maybe it will help someone.

  31. Why does my vlookup give the same answer?

  32. Hi,

    My table has duplicates in lookup cell, but the value against it is unique, what should I do if I want all the values populated?
    e.g
    Column A Column B
    Banana USA
    Watermelon Brazil
    Banana Columbia

    Now if I want both USA and Columbia in how should I get it, as vlookup only gives USA?

    1. @Gautam Lapsiya Yes the VLOOKUP will only return the first answer.

      An option is to use a PivotTable like in the last example.

      Alan

      1. Thanks Alan

  33. Watched the YouTube video and it was brilliant instruction!

    Saved me loads of time and frustration.

    Thanks so much.

  34. You might be able to concatenate a string. Wrap the * in "" to indicate that you want to refer to that character literally and not as a wildcard.

    Otherwise you might be able to use the EXACT function with INDEX and MATCH instead of VLOOKUP. Information on this can be found below.

    http://www.computergaga.com/tips/lookup_formulas/case_sensitive_lookup.html

    I have not tested this, but think it should work. This function does what its name suggest and ensure the strings match.

  35. That might be. My ERP system only allows * as special characters so all my item number data exports have * in them. Do you know of a way to prevent this?

  36. I am trying to write a VLookup formula to bring on hand data into a sheet that details sales volume. My formula is:: =VLOOKUP(A2,AA$2:AB$100,2,FALSE)

    Item B1007080SHF3MDO2BS***GG is not present on the target range; Item B1007080SHF3MDO2BSR**GG is there, with a required response value of 409.

    When I apply the VLookup to both fields, I get the value of 409 for BOTH, so the 'exact value' part of the formuala does not seem to be working. I have both lists sorted A-Z. It does not seem to matter if I format both columns as text or numbers, same issue (the full data set column does have values that are numbers only & alpha-numeric in both the search criteria and the target range).

    1. It looks like the VLOOKUP is using the ** characters as a wildcard.

  37. Hard to say exactly without seeing the file. Check that there is definitely a match, so no spaces after the number. And also check the formatting of both the lookup_value and on the table_array to check they are the same.

  38. i am doing a very simple lookup and I am getting the #n/a. Trying to pull a number into my master. The first column on both is my ref. the formula is =vlookup(A2,PLANC,2,false). Very very simple. I checked to make sure there was a match and there was and no duplicates were found. Help!

    1. I was having the same issue and just figured it out! (getting #N/A when I know there's an exact match)

      If you see the green triangle on the cell, hover over the yellow exclamation point "Number stored as text". From the dropdown select "Convert to Number" and it will fix it immediately. Good luck!

      1. Well done, Jen.
        Yes, the two values must be the same format.

  39. Thanks for sharing. I had some hidden columns so my VLOOKUP was not working! Fixed it after readong Point 3. on your list.

  40. VLOOKUP won't be able to. It will only return the first name from the sheet.

    You will need more than 1 VLOOKUP. Or a macro would be needed for multiple occurrances of a name.

  41. can any help me put

    i had a sheet of name of the employs and their working hours, here the problem is in my sheet i had two names similar...(EX: mahesh as two time in the sheet )

    when i use vlookup in the table for my sheet i am not getting the second name

    how can i get the second name in the sheet........by using vlookup

  42. Thank you, thank you, thank you for the manual - automatic guide.

  43. Hi Don,

    Having calculation set from manual to automatic is very helpful. Save lots of time.

    Thank you very much.

    Andy

  44. thank you

  45. Hard to say why without seeing the spreadsheet but would expect there to be an error in the lookup value argument. I would check the reference.

  46. Hopefully someone can help me. My vlookup is returning the correct values in my columns but it returns the same value until it comes across another non-zero value. For example the correct value of row 10 is 259 but it will return 259 for rows 11, 12, and 13. Row 14 will correctly show 864 but then rows 15 and 16 will too.

    Has anyone come across this?

    thanks,

    1. Have the same issue. VLOOKUP is used only for values in ASCENDING order! Try Index Match combination instead.

  47. thanks a lot for this information

  48. Thanks a lot! very helpful :)

  49. Sometimes the error may be because it has not calculated properly. If you have calculation set to manual rather than automatic, this can also cause an error when using vlookup or index match. Once the worksheet calculation is set to automatic, it works again (set it to automatic by going to the Formulas tab and then Calculation Operations and set to Automatic).

    1. Massive thanks for this tip! I couldn't figure it out!!!

      1. You're welcome, Anna.

    2. OMG.. thanks so much .. was trying a few times why my excel keep seem to be repeating the same value.

    3. This has saved my hours of hair-pulling ! I have been working with vlookup for a long time now but had not encountered this problem before. Many thanks !

    4. Thank you so much Dan! This annoying setting has wasted me hours before!

    5. Dan,

      THANK YOU!!! Hours wasted, but many more hours saved. The Automatic setting in Calculation Operations did it. Karma credits in the heapful submitted your way.

      1. Thank u Dan.
        I was trying to copy formula and wasted hours. ur just one line comment solved my problem in a tick
        :)

  50. when we using vlookup it is show is same number in all colons

    1. Me too is facing a similiar error.
      Have you got any solution for this.please let me know

      1. save the sheet, it will run the lookup

      2. I'm not sure what you need. Do you mean all columns?
        You would need a VLOOKUP in each. A formula can only return to one cell.

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)