Plaintext and Excel
April 25, 2007 10:23 AM
Subscribe
MS Excel: I need to place quotation marks around the numbers in a column. Is there a better way to do this than I am currently trying or is there a plaintext spreadsheet editor that would be a better solution?
Right now, I end up inserting two columns filled with quotation marks around the column of numbers - saving as a csv - opening in Notepad (where the single marks appear as four marks) - edit and replace the spaces between the columns and replace the 4 quotation marks with one on either side of the number. This is then copied and pasted back into Excel where most of the time the quotation marks do not appear (even when the cells are formatted as text). Is there such a thing as a plaintext spreadsheet editor that would work better for this?
Example:
I need to turn this -
1001
1002
1003
Into this -
"1001"
"1002"
"1003"
posted by imposster to computers & internet (10 comments total)
B1 = char(34) & A1 & char(34)
B2 = char(34) & A1 & char(34)
etc.
Once you have column B worked out, you can either keep the quoted data as a separate column, or highlight column B, and do "paste special" on column A; select "Value" as the type of paste.
posted by inigo2 at 10:39 AM on April 25, 2007