Combine text strings from column A

wnoland

New Member
Joined
May 2, 2012
Messages
5
I'd like to be able to take a columnA list of email addresses and combine them into one cell, separated by commas, so I can paste values out of to drop into IM----instead of using a clunky:

=CONCATENATE(A1, ", ",A2, ", ",A3, ", ",A4, ", ",A5)

Anything come to mind that I can drag down the entire column?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi and welcome,

You could use the slightly less clunky format:

=A1&","&A2&","&A3 ....

Or you could write a UDF to do it for you:

  • Press Alt -> F11 to open the VBA editor
  • Click Insert -> Module
  • Paste the code below in the white space
Code:
Function econcat(oRng As Range) As String
    econcat = Join(Application.Transpose(oRng), ",")
End Function
  • Then use it in a cell as shown in the example below, changing A3 to the last cell you want:
    =econcat(A1:A3)
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top