Concatenate rows

ganeshpoojary05

Board Regular
Joined
Apr 26, 2011
Messages
105
Hi,

I need a concatenate formula,
for example: I have a data which contains email id of all the employees in Range (a1:a100). I need a formula where i can get consolidation of all email id from range (a1:a100).

For now I'm using the below formula:
=concatenate(a1,a2,a3,...a100).

Any help would be greatly appreciated.
 
Thanks guys! Appreciate it!
You are welcome. You might be interested in this single UDF which combines both functions into one (just feed it a contiguous vertical or a horizontal range and the function will figure out which it is on its own)(it also corrects the error message generated if a single cell is passed in)...

Code:
Function Concat(Rng As Range, Optional Delimiter As String) As String
  If Rng.Columns.Count > 1 Then
    Concat = Join(WorksheetFunction.Index(Rng.Value, 1, 0), Delimiter)
  ElseIf Rng.Rows.Count > 1 Then
    Concat = Join(WorksheetFunction.Transpose(Rng), Delimiter)
  Else
    Concat = Rng.Value
  End If
End Function
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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