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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,216,116
Messages
6,128,926
Members
449,479
Latest member
nana abanyin

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