VLOOKUP misery

dbwiz

Active Member
Joined
Nov 20, 2007
Messages
275
Arggh! :mad: I have a list of codes in Col A (some of which are totally numeric, others start with letters) and descriptions in Col B. I am trying to synch up the codes in multiple columns on other large spreadsheets to pull in the descriptions, and it is not being very cooperative.

I made sure that all were formatted general, and it will pull in the numeric ones but not the ones starting with letters. I have tried reformatting to text, etc, and no avail.

I know I am missing something really simple. Can I not format everything the same, or am I going to have to sort by code for each spreadsheet and column, separate them by starting with numeric vs starting with a letter, and stand on one foot while praying to the almighty Excel wizard that it works? Sigh.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
do you mean the codes start with letters or the descriptions start with letters. The difference between numeric and letters shouldnt matter if its in the description. but all i can think of is that you need to lock your range with f4, and make sure it says '0' for the match type. general formatting has always worked for me when pulling in lettered descriptions and i use vlookup on a daily basis. let me know if either of those two tips were helpful.
 
Upvote 0
I figured it out. It was none of the above. Turned out there was some extra spaces in the code. I did a TRIM on them copy/pasted special values and then the vlookup worked just fine.:biggrin:
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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