Would like have some feedback on how to remove the duplicate by ID..
Ex. ( 3 Column only)
A. ID
B. Name
C. Text ( this column need to be removed all the duplicates by ID )
Sample data:
19 John NH MK CL CN
19 Kerry JK MK CN AL
16 Dii JK MK CN AL
15 John SS
Desired Result:
19 John NH CL
19 Kerry JK AL
16 Dii JK MK CN AL
15 John SS
condition details - If the two record’s have a same ID’s ( our ex. Like ID 19) then would like to compare column three ( Text column – single string) , and the column can have a multiple code’s or single code ex. MK or Multiple code like a NH MK CL CN. And each code consist two character only, but how many code’s each ID holds varies.
And this what I want compare, like our sample example
Row1: 19 John NH MK CL CN
Row2: 19 Kerry JK MK CN AL
This case both rows have 4 code’s ( row 1/ column 3 : NH MK CL CN and row 2/ column3: JK MK CN AL) in this case, I would like to remove only codes that show up on both record’s, which is : MK and CN, then our new output looks like :
19 John NH CL
19 Kerry JK AL
But if the two record’s ( text clumn) don’t have any common codes, then the output will remain the same Ex.
19 John NH KK CL LL
19 Kerry JK MK CN AL
This case the output remains same:
19 John NH KK CL LL
19 Kerry JK MK CN AL
and finally if the two row’s don’t have same ID, then don’t compare.
This are like 1000’s record it’s very difficult to compare manually..
Thanks.
Jimmy