types - Force Excel 2007 to treat all values in a column as text -


i have large column of data in excel. data should treated text, in cells excel "magically" changing data numeric. screwing vlookpup() functions in part of spreadsheet, , need override excel's automatic data type detection.

if manually go through cells, , append ' each numeric cell, works. don't want hand several thousand cells.

for example, works: manually type '209

and not work: manually type 209, right click , format text.

if changing format of column not option, it's helpful create column that's 'vlookup friendly' , leave main column alone.

this trick i've used few times:

say 'mixed' column column a.

in column b, enter formula:

 =concatenate(a1) 

or jean-françois pointed out in comment, shorter version:

 =a1 & "" 

and drag down bottom row.

column b strings. vlookup can use column b.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -