V-Lookup with Text Values

gambils

Active Member
Joined
Apr 22, 2009
Messages
260
When I do v-lookups, I have often had to convert columns from text to number values by doing a paste special where I add a zero or something to make the value I'm looking up a numeric value.

But having an issue with items that are text and begin with a letter, such as V67.1 (instead of a, for example, 198.3 where it comes back fine) . When I apply my "add zero solution" to convert it to a number, it returns #VALUE! in the cell.

Any way I can change that column to numeric values where it still shows the V67.1 and converts the cells that can be changed to a number, such as the 198.3, accordingly?

All this assumes V-lookup only works with numeric values concerning which I could be mistaken?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
All this assumes V-lookup only works with numeric values concerning which I could be mistaken?
Yes, you are mistaken. VLOOKUP works for text as well as numbers. The key is that the data you are matching and the data you are looking up must be formatted EXACTLY the same.

So, for example, is you have 198.3 entered as Text, and are looking it up in a range where the values are entered as Numbers, it will not work. The both must be Text, or both must be Numeric.

Also, be aware of leading zeros or extra spaces, as they often cause problems, and be aware that what you see on screen is not necessarily how the data is stored in Excel (look in the Formula bar to see it as Excel does).

For example, you may have a zip code that looks like "01234" on screen. But is you go to the cell and look in the formula bar, you may see the value "1234". The leading zero is not really there, it is just that a Custom Format has been applied to make it display that way.
 
Upvote 0
I thought that might be the case which is why I was doing the conversion to numeric which has worked before. Assuming I can't make the columns numeric, any way I can convert both to text?
 
Upvote 0
Highlight the Column, and from the Data menu, select "Text to Columns".
Hit the Next button until you get to Step 3, and select the "Text" radio button and then click Finish.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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