Excel VBA - Combine rows with duplicate values in one cell and merge values in other cell

前端 未结 6 1257
遇见更好的自我
遇见更好的自我 2020-11-27 23:28

I am trying to find duplicate values in one column and combine the values of a second column into one row. I also want to sum the values in a third column.

For examp

6条回答
  •  无人及你
    2020-11-27 23:56

    .Cells(lngRow, 11) = .Cells(lngRow, 8) & "; " & .Cells(lngRow + 1, 8)

    should be

    .Cells(lngRow, 11) = .Cells(lngRow, 8) & "; " & .Cells(lngRow + 1, 11)

提交回复
热议问题