A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Exactly, if the row values are same from A:E just merge as one. This is applicable for Category_3.
It is very much like the below code but I am worried what if same values are not next to each other. A2 =A1 logic works only if same values are next to each other only then we can merge cells. If not maybe we need to sort it in such a way everything is grouped together. In my case they are probably place next to each other.
For Each rng In Selection
If rng.Value = rng.Offset(1, 0).Value And rng.Value <> "" Then
Range(rng, rng.Offset(1, 0)).Merge
End If
Next
While wrapping the text in column G. It is only applicable for Category_1 instead of the whole column in the sheet.
Category_2 doesn't need wrap text.