Vlookup Error

JTJK19

New Member
Joined
Jun 8, 2016
Messages
5
I have a spreadsheet with two tabs, tab one is consumer and 2nd is my inventory. Consumer billing document contains 9-10 digits vs my inventory which is 8 digits. so naturally i did =right(b2,len(b2)-1) this works perfectly.
Now when i try to do a vlookup i get an error. I have checked to ensure that both are free of any hidden characters or spaces. Both are set to same parameter general (i have tried txt, number) but if I just type out the number works like a charm. Any suggestions what the issue could
Many thank in advance

1642536693785.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
With VLOOKUP, the values you are looking up MUST be the same data type as the list you are matching against.
One of the most common problems is when people try to compare numbers to text (they look numbers, but are really entered as text).

You can easily confirm this with the ISNUMBER function.
First apply it to the value you are looking up (i.e. =ISNUMBER(C2) ), then apply it to one of the entries in your list.
They should either both return TRUE or both return FALSE. If one returns TRUE and one returns FALSE, then they are not the same data type.

To check for any extra characters, the LEN function will do.
I have some data that comes from the web or other programs sometimes have blank special spaces that mess up the match.
So use the LEN function to confirm both are the same length.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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