• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Check duplicates within a group

Hi Ninjas,

I am posting a after a long time because I have stuck up badly this time.

Please refer to the attached sheet.

My question is to find and mark duplicates within a group.
For the same "CODE" and for the same "first name" it is not a "Hit".
but for the same "CODE" and unique "first name" it is a "Hit".

I have also maually marked the results in sheet which i needs to be calculated through some formula because I have a very huge data.


It is urgent guys please help and provide solutions ASAP.

Thanks
Ehtisham
 

Attachments

  • mark duplicates.xlsx
    11.3 KB · Views: 4
Hi Ali,

Can you try below formula in C2 and copy down.

=IF(SUM(--(FREQUENCY(IFERROR(MATCH(LEFT(IF(A2=$A$2:$A$9,$B$2:$B$9),FIND("|",SUBSTITUTE(B2&" "," ","|"))-1),LEFT(IF(A2=$A$2:$A$9,$B$2:$B$9,0),FIND("|",SUBSTITUTE($B$2:$B$9&" "," ","|"))-1),0),"e"),ROW($B$2:$B$9)-ROW($B$2)+1)>1)),"","X")

See the file with yellow cells.

Regards,
 

Attachments

  • mark duplicates.xlsx
    12.1 KB · Views: 1
Thank you Somendra for your solution.
It is working fine as far as I check now but It seems very complex to me, so can't you make it simpler by making a helper col for splitting the first names only and then some formula.

Thanks
 
I have put more data into it and it is not working may be I have did something wrong can u plz suggest.
 

Attachments

  • mark duplicates111.xlsx
    12.5 KB · Views: 2
Hi Somendra thank you very much for your awesome solution and prompt reply.

But solution by Narayan is more easier for me to understand thank you Narayan.

Does'nt matter for which solution I choose but I learn from every one of it.

Thanks again both you it is really a great help.
 
Back
Top