Basically, if you follow the directions from that page you will be inserting VBA code into a new module within that workbook:
Option Explicit
Function ConcRange(Substrings As Range, Optional Delim As String = ", ", _
Optional AsDisplayed As Boolean = False, Optional SkipBlanks As Boolean = True)
Dim CLL As Range
For Each CLL In Substrings.Cells
If Not (SkipBlanks And Trim(CLL) = "") Then
ConcRange = ConcRange & Delim & IIf(AsDisplayed, Trim(CLL.Text), Trim(CLL.Value))
End If
Next CLL
ConcRange = Mid$(ConcRange, Len(Delim) + 1)
End Function
That should do the trick. Once you go back into the Excel view, all you would have to do then is enter this formula in a blank cell (assuming your range is in cells A2:E2):
=ConcRange(A2:E2)
* Of course, if you plan to have varying # of responses, you could modify that function to something like:
Formula:
=ConcRange(A2:INDEX(2:2,1,MATCH(REPT("z",99),2:2)))
That will concatenate all cells in row 2 from A2 thru the last column with a text value in it.
- Moo
Bookmarks