Vlookup N/A Error

Jak3t

New Member
Joined
Apr 18, 2013
Messages
6
I think I have broken Excel. I have a Vlookup function returning a N/A error completely inexplicably.

The vlookup lookup value exists in the array (formatted exactly the same, a numerical value identical to the lookup value verified by the EXACT function etc) but the result is a N/A error.

The odd thing in in a table of over 900 identical formulas only a dozen or so return the N/A error. Both the lookup value and the array values are the results of many formulas which rely on lookups, averages, additions/subtractions and tan/cos/sin/sqrt functions. The data tables are huge but everything worked until I doubled the source data. All formulas remained the same (excepting the references to the expanded data) but now I get just a few errors.

I have tried re-writing the Vlookup as an Index/Match formula with the same results. Both the vlookup and match functions are looking for exact values and the array data contains the appropriate values which I have checked and double checked are identical to the lookup value, formatted identically and are numerical with no additional spaces etc.
I have even tried copying the lookup values and the array data and pasting as values in a new sheet and I still get the error. Even more bizzarly though if I double click on the lookup value and press enter it fixes the N/A error. Initially I thought this meant that the lookup value was being stored as text however I have gone through all the data in my original sheet and multiplied each cell by 1 to ensure it is being stored as a number to no avail.

What could possibly be the problem?
 
Last edited:
No luck again Aladin, Thanks for the idea.

I have found a work around - by converting the lookup value and the array values to text (using the TEXT function embedded in the formula) the lookup is successful. Formula as follows:
=ROUND(IF(ISERROR(INDEX(SunAnglesData!$E$4:$E$32,MATCH(TEXT(B82-BP152,"0.0000000000"),SunAnglesData!$D$4:$D$32,0)))=FALSE,B82-BP152,B82+BP152),10).
As much as I would love to get to the bottom of why the error was occuring in the first instance, I think I will save everyones time and just stick with this.
Thank you all for your help.
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
No luck again Aladin, Thanks for the idea.

I have found a work around - by converting the lookup value and the array values to text (using the TEXT function embedded in the formula) the lookup is successful. Formula as follows:
=ROUND(IF(ISERROR(INDEX(SunAnglesData!$E$4:$E$32,MATCH(TEXT(B82-BP152,"0.0000000000"),SunAnglesData!$D$4:$D$32,0)))=FALSE,B82-BP152,B82+BP152),10).
As much as I would love to get to the bottom of why the error was occuring in the first instance, I think I will save everyones time and just stick with this.
Thank you all for your help.

That's great. Thanks for the information.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,598
Members
449,089
Latest member
Motoracer88

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