Segregating/displaying duplicates

  • Hi,


    I have tried to modify the delete duplicate code to segregate/display code. the problem is, once a first loop is over it isn't returning as required.


    inputs used
    [TABLE="width: 64"]

    [tr]


    [TD="width: 64"]aa[/TD]

    [/tr]


    [tr]


    [td]

    mu

    [/td]


    [/tr]


    [tr]


    [td]

    aa

    [/td]


    [/tr]


    [tr]


    [td]

    gf

    [/td]


    [/tr]


    [tr]


    [td]

    gh

    [/td]


    [/tr]


    [tr]


    [td]

    ac

    [/td]


    [/tr]


    [tr]


    [td]

    uy

    [/td]


    [/tr]


    [tr]


    [td]

    ad

    [/td]


    [/tr]


    [tr]


    [td]

    re

    [/td]


    [/tr]


    [tr]


    [td]

    aa

    [/td]


    [/tr]


    [tr]


    [td]

    mu


    output: aa aa

    [/td]


    [/tr]


    [/TABLE]



    Thanks and regards,
    prabhu.C

  • Re: Segregating/displaying duplicates


    Thanks for your reply.
    I have "x" values in a column among which "y" may be duplicates. i need to check for duplicates and display the duplicates in another column.
    With above code first data is compared to all other data, but i need the loop so 2nd 3rd data etc also compared to entire column of data.
    Hope I explained to you now.


    Thanks and regards,
    Prabhu.C

  • Re: Segregating/displaying duplicates


    Hi..


    Try this..


    It loops through Column A.. adding values into the Scripting Dictionary. When it comes across a Value that already exists in the Dictionary.. it puts it in Column B.
    Finally.. it removes duplicates in Column B so that al that remains is 1 instance of each value that was a dupe..


  • Re: Segregating/displaying duplicates


    its working fine thanks a lot




Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!