What if instead of just three cells
you have an Excel range A1:A100
which has all the names? How would you concatenate in such an instance? Will you type that long a formula
?
As Jerry suggested, VBA is Apt for this. But what if you do not want to use VBA or long formulas?
See this example. I am taking 10 cells for the sake of explaining.
Let's say the data looks like this.
![enter image description here](https://i.stack.imgur.com/QTmeR.png)
Now select the entire column and click on Data~~>Text To Columns
![enter image description here](https://i.stack.imgur.com/olSat.png)
When you click finish, the output will be like this
![enter image description here](https://i.stack.imgur.com/j53S9.png)
Now in cell say E4
, type this =Transpose(A1:A10)
. Replace A1:A10
with the actual range. However do not press the Enter key. Press the key F9. You will see that all the first names are now visible.
![enter image description here](https://i.stack.imgur.com/RqT0G.png)
Simply copy that and press Esc. Now open Notepad and paste it there.
Next delete the {
and the }
Next manually replace ","
by ,
and you will get what you wanted.
![enter image description here](https://i.stack.imgur.com/AIuVa.png)