# Formula to convert text to numbers / Vlookup help

#### futbol1097

##### New Member
I have a two worksheets "Results" and "Data". I have a Vlookup formula in "Results" that looks up an address (101, 4331, 207, etc.) in column A of "Data", and then returns what is in column B. Pretty simple.

The problem is that the addresses in "Results" are numbers, but the addresses in Data are text (because they are being filtered in through a SQL database that spits them out as text), so the Vlookup wont work. I need a formula that will convert the column A addresses in "Data" into numbers. Any ideas? The addresses will either be 4 or 5 digits long.
I can't just do Copy-Paste Special since I am dealing with a Sql database, and I have to be able to update this ssht all the time.

Or, I need to write a Vlookup formula that accounts for the fact that the lookup is a number but the table data is text.

Thanks,
R

### Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

#### Dan Waterloo

##### Well-known Member
Use the VALUE function to convert text to numbers.

E.g., =VALUE(A2)

#### Datsmart

##### Well-known Member
Suggestion 1. (convert by Text to Columns)
Select the range of text numbers,
Click Data | Text to Columns...
Then Click "Finish".

Select a blank cell
Hit Ctrl-C to copy
Right Click and choose Paste Special

Suggestion 3. (If you have Excel 2003)
Select the cells affected and right click on the yellow "!" that shows up next to the cells and choose convert to number.
(Must have "Number stored as Text" checked in Tools|Options|Error Checking)

Replies
3
Views
119
Replies
4
Views
284
Replies
0
Views
44
Replies
9
Views
308
Replies
6
Views
142

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,871
Messages
5,834,152
Members
430,261
Latest member
quangtinator

### 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.

### Which adblocker are you using?

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

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