Folks,
Could you please help me to merge the columns horizontally if values are same (Duplicate). I have attached the work book what I am trying to accomplish.
Folks,
Could you please help me to merge the columns horizontally if values are same (Duplicate). I have attached the work book what I am trying to accomplish.
Last edited by Pepe Le Mokko; 12-04-2019 at 12:33 PM. Reason: Removed unnecessary title part
Cheers,
Joshi
Being with a winner makes you a winner
Hi krjoshi
Try the code below which is being applied to row 3
Please Login or Register to view this content.
Hi excelxx,
Thank you so much its working great. But, I would have to merge row 2 also, could you please help.
Regards,
Joshi
Last edited by krjoshi; 12-05-2019 at 11:18 AM.
Hi Joshi
In the line of code below
For Each xC In xOutput.Range(xOutput.Cells(3, 6), xOutput.Cells(3, x))
Change the 3 to 2, so it becomes
For Each xC In xOutput.Range(xOutput.Cells(2, 6), xOutput.Cells(2, x))
And rerun and it would apply to row 2
Hi excelxx, Thank you so much. the code is working great
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks