Excel – How to convert a Excel row to a single csv text cell (inverse of “Text to Columns)

csvmicrosoft excelmicrosoft-excel-2013

I have a POS program that allows me to import stock items from a csv file. The problem is that it only accepts a certain csv format.

I have a Excel spreadsheet that saves my stock in different columns with applicable column headings. Even if I save that as a csv file the POS program can not import it as such. I would like to know how to convert following Excel spreadsheet (5 columns):

enter image description here

to (1 column):

enter image description here

Best Answer

Concatenation is the keyword here. You can either use the actual concatenate function, or do it using the Ampersand.

=concatenate(A1,",""",B1,""",""",C1,""",""",D1,""",""",E1,"""")

Or simply do this, which makes it easier to tell the concatenation and the inserted commas apart.

=A1&","""&B1&""","""&C1&""","""&D1&""","""&E1&""""

However, this might not be the best solution for your problem, it just answers your question. ;-)

Related Question