I am trying to merge rows based on duplicate values in two columns. Specifically, look at the two screenshots below. If entries under Last Name (Column B) and Email (Column C) match in any two rows, then they should be merged.
This is what it looks like originally:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Email Address[/TD]
[TD]Cell Phone[/TD]
[TD]Organization Name[/TD]
[TD]Organization Type[/TD]
[TD]Job Title/Designation[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]PQR[/TD]
[TD]abcpqr@test.com[/TD]
[TD]xxxxxxxxxx[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]PQR[/TD]
[TD]abcpqr@test.com[/TD]
[TD][/TD]
[TD]XYZ[/TD]
[TD]MNC[/TD]
[TD]Student[/TD]
[/TR]
</tbody>[/TABLE]
This is what I would like it to look like:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Email Address[/TD]
[TD]Cell Phone[/TD]
[TD]Organization Name[/TD]
[TD]Organization Type[/TD]
[TD]Job Title/Designation[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]PQR[/TD]
[TD]abcpqr@test.com[/TD]
[TD]xxxxxxxxxx[/TD]
[TD]XYZ[/TD]
[TD]MNC[/TD]
[TD]Student[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
In my workbook, a user is likely to copy paste rows of data and will then run a macro to check for duplicates across Column B and Column C and then merge them if found. There are many more columns than the ones displayed here and the user will be adding new columns so I would like the merge to occur across the entire row. Is there any way to do this?
This is what it looks like originally:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Email Address[/TD]
[TD]Cell Phone[/TD]
[TD]Organization Name[/TD]
[TD]Organization Type[/TD]
[TD]Job Title/Designation[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]PQR[/TD]
[TD]abcpqr@test.com[/TD]
[TD]xxxxxxxxxx[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]PQR[/TD]
[TD]abcpqr@test.com[/TD]
[TD][/TD]
[TD]XYZ[/TD]
[TD]MNC[/TD]
[TD]Student[/TD]
[/TR]
</tbody>[/TABLE]
This is what I would like it to look like:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Email Address[/TD]
[TD]Cell Phone[/TD]
[TD]Organization Name[/TD]
[TD]Organization Type[/TD]
[TD]Job Title/Designation[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]PQR[/TD]
[TD]abcpqr@test.com[/TD]
[TD]xxxxxxxxxx[/TD]
[TD]XYZ[/TD]
[TD]MNC[/TD]
[TD]Student[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
In my workbook, a user is likely to copy paste rows of data and will then run a macro to check for duplicates across Column B and Column C and then merge them if found. There are many more columns than the ones displayed here and the user will be adding new columns so I would like the merge to occur across the entire row. Is there any way to do this?