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.
Now select the entire column and click on Data~~>Text To Columns
When you click finish, the output will be like this
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.
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.