Vlookup problem

Nalex

Board Regular
Joined
May 5, 2010
Messages
85
Hi,

I have a vlookup that is giving me some trouble.

On sheet1, I am receiving data that is a 12 digit number, and I am then using a formula to only take the 1st 8 digits of this number.

Then on sheet2, I have a simple formula/reference (=Sheet1!A2) to bring that number into sheet2, where the vlookup uses this number to look-up data on another sheet ( =VLOOKUP($A2,Sheet3!$A$1:$H$1500,COLUMN(),0) ).

My problem is that the vlookup formula is not displaying the results when I use the "=Sheet1!A2" formula to bring the 8 digit number into the sheet. It works great when I hand enter the number on Sheet2, but not when I use this formula.

Any help would be greatly appreciated.

Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

I have a vlookup that is giving me some trouble.

On sheet1, I am receiving data that is a 12 digit number, and I am then using a formula to only take the 1st 8 digits of this number.

Then on sheet2, I have a simple formula/reference (=Sheet1!A2) to bring that number into sheet2, where the vlookup uses this number to look-up data on another sheet ( =VLOOKUP($A2,Sheet3!$A$1:$H$1500,COLUMN(),0) ).

My problem is that the vlookup formula is not displaying the results when I use the "=Sheet1!A2" formula to bring the 8 digit number into the sheet. It works great when I hand enter the number on Sheet2, but not when I use this formula.

Any help would be greatly appreciated.

Thanks
Sounds like you have a data type mismatch.

The numbers in your lookup table are numbers but the lookup value is a TEXT string (even though it might look like a number).

What does the formula look like where you:

I am then using a formula to only take the 1st 8 digits of this number.
 
Upvote 0
Thanks for your help, I am using:

=LEFT(a5,8)

The 12 digit number is in a5

Thanks
 
Upvote 0
Thanks for your help, I am using:

=LEFT(a5,8)

The 12 digit number is in a5

Thanks
Does that formula return a "number" that has any leading zeros?

Try it like this and see if it makes a difference:

=--LEFT(A5,8)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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