Vlookup number vs. text

lordterrin

Board Regular
Joined
Mar 21, 2012
Messages
155
I have two sheets, both reports which I receive daily. In the first report, a group of numbers is formatted as "general", while in the second, the numbers are formatted as "text".

I am trying to do a vlookup between the smaller group formatted as general to the list that is formatted as text, and it won't work.

If I highlight the column, reformat as text, then click each cell, hit F2, then hit Enter, Excel does some type of "okay, I'll refresh this as text" thing, and then the vlookup pulls.

I'm building this into a macro that I'm going to run daily on like...... 4000 lines of data, so this is not a practical solution.

I've tried pre-formatting the row as "text", then copying it into a new sheet, then doing the vlookup, but nothing works.......

What does hitting F2, then hitting Enter, do exactly?

Any ideas how I fix this?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

marious

Board Regular
Joined
Mar 3, 2013
Messages
220
1) go to data tab
2) Select the column with Text and choose text to columns from the data ribbon And choose the pertinent format for this column.
hope it help
 

Watch MrExcel Video

Forum statistics

Threads
1,129,471
Messages
5,636,510
Members
416,919
Latest member
twc2c

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
Top