VLOOKUP Question - Number Stored As Text Error Not Returning Values

goodmachine

Board Regular
Joined
Oct 7, 2009
Messages
70
Hello,

When I run my VLOOKUP to match values from one sheet to another, the Table_array consists of data where the values are stored as text. The values on the Table_array can be numbers only or alphanumeric. Some of the numbers have leading zeros as well.

When I run the VLOOKUP, the formula is unable to match the Lookup_value. For example, the Lookup_value can be 131112 and that value is on the Table_array, but the formula result will be #N/A. Only when I convert the value to a number will the VLOOKUP return 131112.

I've tried a couple of things to get passed this issue:
1. Format Cells to General
2. Copy the Table_array and Paste as Values.
3. Defined the table

None of these changes have not improved the results.

Any help is appreciated.

Thank you.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Are you inputing 131112 in your VLOOKUP formula or are you referencing a cell that contains the number 131112?
 
Upvote 0
Is your Lookup and Excel Table? If so, add a calculated field to it converting the text to a number using Value() and then lookup that column. Insofar as the leading zeroes are concerned, Value will also convert them, if they are in text, otherwise it ignores them ...

There are several ways of fixing this issue - others will be along shortly with their preferred methods, I'm sure!
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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