I believe you must use a User Defined Function or a macro.
=CONCATENATE(A1:A100) doesn't work.
A UDF........
Function ConCatRange(CellBlock As Range) As String
Dim Cell As Range
Dim sbuf As String
For Each Cell In CellBlock
If Len(Cell.text) > 0 Then sbuf = sbuf & Cell.text ' & ","
'if comma wanted, delete the ' in above line
Next
ConCatRange = Left(sbuf, Len(sbuf) - 1)
End Function
Usage is =ConCatRange(A1:A100)
Macro.............
Sub ConCat_Cells()
Dim x As Range
Dim y As Range
Dim z As Range
Dim w As String
Dim sbuf As String
On Error GoTo endit
w = InputBox("Enter the Type of De-limiter Desired")
Set z = Application.InputBox("Select Destination Cell", _
"Destination Cell", , , , , , 8)
Application.SendKeys "+{F8}"
Set x = Application.InputBox _
("Select Cells...Contiguous or Non-Contiguous", _
"Cells Selection", , , , , , 8)
For Each y In x
If Len(y.text) > 0 Then sbuf = sbuf & y.text & w
Next
z = Left(sbuf, Len(sbuf) - 1)
Exit Sub
endit:
MsgBox "Nothing Selected. Please try again."
End Sub
Copy/paste both or one of the above into a general module in your workbook.
ALT + F11 to get to Visual Basic Editor.
CRTL + r to open the Project Explorer.
Select your workbook/project and right-click>insert>module.
The UDF is used as a Function in a cell.
The macro can be run from Tools>Macro>Macros or a button.
Gord Dibben Excel MVP