When VLOOKUP returns #N/A when there IS AN EXACT MATCH

cgifford

New Member
Joined
Jul 26, 2011
Messages
2
When:
-VLOOKUP fails to recognize your exact data match within the table array, and returns #N/A.

I originally called this post VLOOKUP IS BLIND!!!!
As I was writing the post asking for help I came up with the clever solution :rolleyes:!

Here it is!


Copy your data into Notepad and then paste it back into Excel!

Enjoy,
Chase
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi Chase,

Welcome to MrExcel!!

I dare say there's either a leading or trailing space (or spaces) in either your lookup_value value or the item(s) in the table_array which is resulting in the function returning a "#N/A" as indeed, an exact match with the space (or spaces) you cannot see is not being found.

These space (or spaces) must be being removed by you copying the data into Notepad and back again. Trimming the data in Excel will achieve the same.

HTH

Robert
 
Upvote 0
Perhaps the spaces were invisible because I could not delete them within Excel. I even tried doing a find / replace all to replace spaces with absolutely nothing.

I also tried setting them all to NUMBER which didn't work. Interestingly enough, some of them had different decimal places (2 vs 2.00).

It was a very strange error and I think that using Notebook to reset data in Excel may be very useful in my future for those weird bugs.
 
Upvote 0
Different rounding would also cause the issue as would looking up a number that is a string to a number that is a value.

The 'fix' may be due to the copying of a formula to a value (via you copying it to Notepad and back).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top