Use the =TEXTJOIN(",",1,A:A)
This will join all values in the A-column into a single cell separated by ",". You can of course change the value to whatever you like.