Batch string concatenation in Excel

后端 未结 12 2093
猫巷女王i
猫巷女王i 2020-12-16 10:31

I have a couple hundred of cells in Excel I would like to concatenate into a single string. Is there a simpler method of doing this than going through them one by one manual

12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 11:08

    where the values that you would like to concantenate start in row 2 column 3 of your sheet

    Sub GOWN()
    roww = 2
    Do While cells(roww, 2) <> ""
        aa = cells(roww, 3)
        dd = dd & aa & ","
        roww = roww + 1
    Loop
    cells(roww + 1, 3) = dd
    End Sub
    

提交回复
热议问题