Assuming your data starts in A1 I would put the following in column B:
B1:
=A1
B2:
=B1&","&A2
You can then paste column B2 down the whole column. The last cell in column B should now be a comma separated list of column A.
Answer from Sux2Lose on Stack ExchangeAssuming your data starts in A1 I would put the following in column B:
B1:
=A1
B2:
=B1&","&A2
You can then paste column B2 down the whole column. The last cell in column B should now be a comma separated list of column A.
- Copy the column in Excel
- Open Word
- "Paste special" as text only
- Select the data in Word (the one that you need to convert to text separated with
,), press Ctrl-H (Find & replace) - In "Find what" box type
^p - In "Replace with" box type
, - Select "Replace all"
Convert a column to a comma separated list
Converting multiple columns/rows of text into comma seperated rows of text
How to convert data to a comma separated form.
How to consolidate rows into a single cell separated by a comma?
Can I convert multiple columns to comma-separated lists simultaneously?
How do I remove duplicates from my comma-separated list?
What's the difference between TEXTJOIN and CONCATENATE?
Videos
I have a set of data where I need to convert a column such as this
| Jeff |
|---|
| Bob |
| Steve |
| Jim |
| Karen |
to a comma separated list that reads Jeff, Bob, Steve, Jim, Karen. I then need to copy that string of text so that I can put it in word, and so I can enter it into a website field. I assume VBA is going to be the go to on this.
I have an excel that has over 3000+ rows of text in different columns that i need to convert into comma seperated text for csv.
Example:
Column1 | Column2| Column3
Name | surname | phonenumber
Name1 | surname1 | phonenumber1
I need to get all of these converted into the following lines of text:
Name,surname,phonenumber
Name1,surname1,phonenumber1
Bonus points if i can convert them to a text format of:
,"XXX","Name","surname","phonenumber","YYY","ZZZ"
,"XXX","Name1","surname1","phonenumber1","YYY","ZZZ"
The xxx, yyy and zzz being static information that is same for every row.
I can do it row by row with =TEXTJOIN() but i cant add the static information and doing it one row at a time seems tedious.
Help pls :>