[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]MaryP[/TD]
[TD]123[/TD]
[TD]street1,street2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]James S[/TD]
[TD]123[/TD]
[TD]street1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]Mary P[/TD]
[TD]123[/TD]
[TD]street1[/TD]
[TD]2.8[/TD]
[/TR]
[TR]
[TD]2002[/TD]
[TD]James S[/TD]
[TD]abc[/TD]
[TD]street1,street2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]Mary P[/TD]
[TD]abc[/TD]
[TD]street3,street4[/TD]
[TD]1.8[/TD]
[/TR]
</tbody>[/TABLE]
I have above data in excel.I have to select row1 and row3 as duplicates,as Column B name is same instead of the space,Column A and Column C are same and column D is similar.Then I need to collect most and correct details and merge into 1 row
Expected result is
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]Mary P[/TD]
[TD]123[/TD]
[TD]street1,street2[/TD]
[TD]2.8[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]James S[/TD]
[TD]123[/TD]
[TD]street1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2002[/TD]
[TD]James S[/TD]
[TD]abc[/TD]
[TD]street1,street2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]Mary P[/TD]
[TD]abc[/TD]
[TD]street3,street4[/TD]
[TD]1.8[/TD]
[/TR]
</tbody>[/TABLE]
Most and correct details
Correct Name- Mary P(with space)
Longest column D-street1,street2
Data in column E-2.8
Please suggest a macro as the number of rows is quite large.
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]MaryP[/TD]
[TD]123[/TD]
[TD]street1,street2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]James S[/TD]
[TD]123[/TD]
[TD]street1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]Mary P[/TD]
[TD]123[/TD]
[TD]street1[/TD]
[TD]2.8[/TD]
[/TR]
[TR]
[TD]2002[/TD]
[TD]James S[/TD]
[TD]abc[/TD]
[TD]street1,street2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]Mary P[/TD]
[TD]abc[/TD]
[TD]street3,street4[/TD]
[TD]1.8[/TD]
[/TR]
</tbody>[/TABLE]
I have above data in excel.I have to select row1 and row3 as duplicates,as Column B name is same instead of the space,Column A and Column C are same and column D is similar.Then I need to collect most and correct details and merge into 1 row
Expected result is
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]Mary P[/TD]
[TD]123[/TD]
[TD]street1,street2[/TD]
[TD]2.8[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]James S[/TD]
[TD]123[/TD]
[TD]street1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2002[/TD]
[TD]James S[/TD]
[TD]abc[/TD]
[TD]street1,street2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]Mary P[/TD]
[TD]abc[/TD]
[TD]street3,street4[/TD]
[TD]1.8[/TD]
[/TR]
</tbody>[/TABLE]
Most and correct details
Correct Name- Mary P(with space)
Longest column D-street1,street2
Data in column E-2.8
Please suggest a macro as the number of rows is quite large.