6 Solutions If VLOOKUP Returns #N/A When Match Exists in Excel

In this lesson, Iโ€™ll demonstrate 7 reasons and solutions why VLOOKUP returns #N/A even though a match Exists in Excel. Moreover, these techniques will enable you to solve the problem that led you here. However, you will master several crucial Excel features and functions during this article, which will come in extremely handy for any assignment using Excel.


๐Ÿ“ Download Excel File

The sample worksheet that was used during the discussion is available to download for free right here.


What is VLOOKUP in Excel?

VLOOKUP is a built-in Excel function that allows you to search for a specific value in one table and return a corresponding value from another column in the same row of the table. It stands for โ€œvertical lookup.โ€. A very handy feature to find any corresponding value of any particular known value. .

Syntax of the function:

ย =VLOOKUP(what you want to look up, where you want to look for it, column number of the return value, TRUE/FALSE)

Here,

what you want to look up: It is called the LOOKUP value. This is the value that you want to search for in any range. You can manually type it or select any cell. Typing manually if the value is a number then you can just type the number but if itโ€™s a text then you need to insert parentheses โ€œโ€.

where you want to look for it: In this part, you declare where to look for the LOOKUP value. It is a range that should start with the LOOKUP value which means the first column of the range should have the LOOKUP value.

column number of the return value: Here you declare which value to return. To be specific which column, that has the return value of the range.

TRUE/FALSE: This declares if the function will match the LOOKUP value to exact or approximate. 0 or FALSE refers to the Exact match and 1 or TRUE refers to the Approximate match.

๐Ÿ“• Read More: 8 Ways to VLOOKUP to Return Multiple Values Vertically in Excel


Learn to Fix When VLOOKUP Returns #N/A If Match Exists in Excel Analyzing These 6 Reasons

Here in this article, we will learn reasons and solutions where VLOOKUP Returns #N/A When Match Exists in Excel using different approaches. To be exact, Iโ€™ve provided a total of 7 methods down below.

vlookup returns #n/a when match exists

Method 1

1.ย  Function Canโ€™t Find Exact Match

Here, we have the dataset for students and their submission date of an assignment. Here we are learning how to use conditional formatting for dates overdue setting a basic condition. For instance, here we want to know the cells which are past the deadline follow the instructions below.

โฌ‡๏ธโฌ‡๏ธ STEPS โฌ‡๏ธโฌ‡๏ธ

  • In order to lookup a certain value corresponding to another value we use the VLOOKUP Here we are searching the WC 2022 Goals value of Mbappe in the Player column by the following formula.

=VLOOKUP(C18,C6:E16,3,0)

VLOOKUP Array doesn't contain exact match

  • The results will be like this #N/A an error. Here this shows because the value we are looking for, Mbappe is not present in the range of lookup.

vlookup returns #n/a when match doesn't exist

  • The solution is we need to have Mbappe on the list or search for other players that are on the list. Letโ€™s change the Player cell to Messi and as you can see that the WC 2022 Goals changed to 7.

๐Ÿ“• Read More: 7 Ways to Use VLOOKUP to Compare Two Lists

Method 2

2. The Lookup Value Provided is Not Present in Table Array Argumentโ€™s First Column

While using the VLOOKUP function we have to state what you want to look up and where you want to look for it. We need to keep the LOOKUP value in the first column of what you want to look up range if not Excel will return a #N/A error.

โฌ‡๏ธโฌ‡๏ธ STEPS โฌ‡๏ธโฌ‡๏ธ

  • Here, we are looking up the value of cell C18 in the range B6:E16 and returning the value from the 3rd column.

vlookup returns #n/a when match exists when lookup value is not in first column

  • As you can see here, the output says returns a #N/A Because the lookup value Messi is not in the first column of the range B6:E16.

vlookup returns #n/a when match exists

  • We can correct the error by reannouncing the range to C6:E16 where the lookup value is in the first column.

VLOOKUP replacing lookup value to first column in the array

  • After that Press Enter to see the difference.

VLOOKUP function results

๐Ÿ“• Read More: What Is Table Array in VLOOKUP in Excel?

Method 3

3. The Numbers are Deployed as Text

If the numbers are in text format the VLOOKUP function will return an error. We have to match the format while looking up a value. This is because the function looks for a number value and stumbles upon a text value instead. Make sure that is not the case.

Follow these steps for more details.

โฌ‡๏ธโฌ‡๏ธ STEPS โฌ‡๏ธโฌ‡๏ธ

  • Here, we are searching for the club whose player has scored 7 goals. The formula is down below.

=VLOOKUP(C18,D6:E16,2,0)

vlookup returns #n/a when match exists numbers as texts

  • As you can see, the cells contain errors because the values are in text format and thatโ€™s why the result is as in the following picture.

vlookup returns #n/a when match exists format difference

Turning texts to numbers in Excel

  • Thus we will see the following result.

VLOOKUP function results

Method 4

4. Large Floating Point Value

Due to the floating point accuracy, Excel returns the #N/A error when you enter time data or huge decimal numbers in cells. After a decimal point, there are numbers known as floating point numbers. (Time values are kept in Excel as floating-point figures) For the function to function properly, the floating point numbers must be rounded to 5 significant digits because Excel cannot hold numbers with very big floating points.

While not everyone encounters this error working especially in some newer versions of Excel, it is still worth checking up on the value.

๐Ÿ“• Read More: 5 Ways to Extract Filtered Data into Another Excel Sheet

Method 5

5. The Lookup Value is Less Than Arrayโ€™s Smallest Value

The lookup value must be greater than the lowest value in the array if the range lookup parameter is set to TRUE or 1; else, #N/A will be shown. 1 or TRUE delivers the closest or approximate value that is smaller than the lookup value when it searches the array for a roughly matching value. So if we are searching for Approximate values we need to have the lookup value in between the range if the lookup value is smaller than the arrayโ€™s smallest value the function will return an error.

This is kind of similar to the one we discussed in the first solution. Either way, make sure the value exists as it is in the original dataset.

๐Ÿ“• Read More: 2 Ways to Use VLOOKUP Function with Two Lookup Values

Method 6

6. Table Lookup Values with Extra Spaces

If the Lookup value has extra space except for the value both in front or at last Excel returns an error because Excel stores the space as a value. Having extra spaces before the actual value messes up the string. Excel recognizes them as two different values and so the function do not pick them up as an exact match while searching.

Of course, there are different methods you can use to get rid of the spaces from existing values. However, make sure to remove them for the lookup functions to work properly. Here is a detailed demonstration of that.

โฌ‡๏ธโฌ‡๏ธ STEPS โฌ‡๏ธโฌ‡๏ธ

  • Here, we started the lookup value with two spaces and thus the result returns the error.

vlookup returns #n/a when match exists lookup value contains extra spaces

  • As we change the lookup value by clearing the spaces, the results are properly shown.

VLOOKUP results

๐Ÿ“• Read More: 3 Quick Ways to Vlookup and Return Multiple Values Horizontally


What to Do While Encountering Syntax Error in VLOOKUP?

In order to use the VLOOKUP function properly, we need to maintain the syntax of it, else the function returns an error. We need to maintain the sequence of every functionโ€™s arguments. We can recall the syntax of any function by typing it with a โ€œ=โ€ before it, and Excel displays a popup regarding the syntax.

Letโ€™s look at this example for a fact.

VLOOKUP syntax error

As you can see the syntax in the picture above is wrong. We have inserted the LOOKUP value later so the function returns as the following picture.

VLOOKUP syntax error as #SPILL!

Now as we correct the syntax replacing the arguments in their respective positions follow the pictures below.

Correcting VLOOKUP function syntax

The results are delivered properly now as the syntax is correct.

VLOOKUP function correct syntax result

๐Ÿ“• Read More: Excel Formula: Use VLOOKUP Function with Multiple Sheets


๐Ÿ“„ Important Notes

๐Ÿ–Š๏ธย  Use shortcuts to reduce the time for instance F4 for absolute value

๐Ÿ–Š๏ธย  While writing formulas carefully see the suggestions and donโ€™t forget the commas and parentheses.

๐Ÿ–Š๏ธย  Be careful while defining arrays, to be accurate follow syntax.


๐Ÿ“ Takeaways from This Article

๐Ÿ“Œย  The article demonstrated VLOOKUP function to inquire about #N/A errors in Excel.

๐Ÿ“Œย  In the first section, we showed how #N/A error occurs and how to solve it in excel

๐Ÿ“Œย  Then, we demonstrated different cases like LOOKUP value lower than the Lowest value in array, LOOKUP value with extra space, Numbers deployed as texts, Large floating Points, no matching LOOKUP value in the array and lookup value is not in the arrayโ€™s first column which follow the same error and their solution in Excel.

๐Ÿ“Œย  Finally, we properly described the function and its syntax.


Conclusion

Firstly, I hope you were able to use the techniques I demonstrated in this VLOOKUP Returns #n/a When Match Exists lesson. As you can see, there are a lot of options on how to do this. However, decide deliberately on the approach that best addresses your circumstance. Most importantly I advise repeating the steps if you become confused in any of the steps if you get stuck. However, practice on your own after taking a look at the Excel file in the practice workbook Iโ€™ve provided above because practice makes a man perfect. Above all, I earnestly hope you can use it. Please share your experience with us in the comment box about how your experience was throughout the article and what we need to improve or add to make things better for you folks. However, if you have any problem regarding Excel spit it in the comment box. The Excelden crew is always available to answer your questions. In conclusion, keep educating yourself by reading. For more Excel-related articles please visit our website Excelden.com.


Related Articles

(Visited 46 times, 1 visits today)
Nashid

Nashid

Hello there. I am Nashid, an Engineer. I Love music, traveling, sports and gaming. I have recently grown interest in DATA SCIENCE and wish to build a career over it. Excel is one of the greatest modern digital creation of human. Life simply gets easier. My Articles are meant to lead you to that easier life with efficiency. If you need any kind of help regarding my articles even anything else try contacting me on social platforms of which I've provided. Keep learning. Wish me luck and Thank you.

We will be happy to hear your thoughts

Leave a reply

ExcelDen
Logo