How can I quickly concatenate a column containing 7 items with a column of 200 items? Currently, I'm just manually retyping the formula when it completes a cycle of 7, but there's gotta be a faster way.
Thanks.
Maybe this will help:
merge contents of a row of data into one cell separated by a comma
Make a User Defined Function
Function ConcatRow(Rng As Range, Optional Separator As String) Dim r As Integer, c As Integer Dim StartCol As Integer, EndCol As Integer With Rng r = .Row StartCol = .Column EndCol = .End(xlToRight).Column End With For c = StartCol To EndCol ConcatRow = ConcatRow & Cells(r, c) & Separator Next ConcatRow = Left(ConcatRow, Len(ConcatRow) - 1) End Function
"Relax. What is mind? No matter. What is matter? Never mind!"
That's more code than I've ever done before, but I'll give it a shot. Thank you so much.
I probably should have mentioned that the data is actually text.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks