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

Viewed 31103

I have a large column of data in Excel. This data should all be treated as text, but in some cells Excel is "magically" changing the data to numeric. This is screwing up my vlookpup() functions in another part of the spreadsheet, and I need to override Excel's automatic data type detection.

If I manually go through the cells, and append ' to each numeric cell, it works. I just don't want to do this by hand for several thousand cells.

For example, this works: Manually type '209

And this does not work: Manually type 209, right click and format as text.

7 Answers

Updated for Office 365 / Excel 365:

CONCATENATE is being deprecated and replaced by CONCAT.

This method still works, i.e. I need 7E10 to appear as 7E10 and not 7.00E+10

Microsoft documentation source here.

Related