I want to take a list of names that are in multiple rows and combined them into a single cell like this:
Joe
Bob
George
and convert that into one cell that has this:
"Joe", "Bob", "George"
Use the CONCATENATE function: Click Text functions and select CONCATENATE. Enter A1 in the text1 field, B1 in the text2 field, and C1 in the text3 field. Click OK. The columns are combined.
Try using TRANSPOSE function and pressing F9 on it:
+---+--------+
| | A |
+---+--------+
| 1 | Joe |
| 2 | Bob |
| 3 | George |
+---+--------+
B1: (type in function bar)
=TRANSPOSE(A1:A3)
Highlight TRANSPOSE(A1:A3), and press F9.
It will give you:
{"Joe","Bob","George"}
Copy and paste that list. That's it.
To concatenate the words, you just have to do:
=CONCATENATE(TRANSPOSE(A1:A3))
Highlight TRANSPOSE(A1:A3)
, press F9, then remove the brackets:
=CONCATENATE("Joe","Bob","George")
There are two basic ways that I know of.
Quickest way -
Better way -
Make your own vb function that iterates across a range of cells, and instead of summing them like sum
, just concatenate them.
I do this all the time, so if anyone knows of an actual built-in Excel function buried somewhere in MS documentation that concatenates ranges, you will save the day.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With