+ Reply to Thread
Results 1 to 12 of 12

how to delete duplicated data

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    egypt
    MS-Off Ver
    Excel 2010
    Posts
    13

    how to delete duplicated data

    i have 2 files . i copy data from 1st file & paste in 2nd file . some rows r similar now i want to delete them .. any ideas ??

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: how to delete duplicated data

    have you tried

    Select your range ....Data--->Remove Duplicates
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: how to delete duplicated data

    is the data you copied from the 1st file, below the data in the 2nd file, at the side or on a new sheet?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    08-02-2012
    Location
    egypt
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: how to delete duplicated data

    select range--->data---->remove duplicates .. that will do the job manually what i'm looking 4 is some kind of formula or macro when i paste data duplicated data remove itself automatic .. i paste date below the data so i can manually remove duplicates easily , if there is better automated way to do it but needs to paste beside or in other sheet its ok no problem

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: how to delete duplicated data

    see if it helps you
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  6. #6
    Registered User
    Join Date
    08-02-2012
    Location
    egypt
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: how to delete duplicated data

    it didnt work with me i test it on a file i know well it deleted randomly & after all some duplicated didnt delete also

  7. #7
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: how to delete duplicated data

    this is just a test to find duplicates in column F and if there are it ...
    (try to adapt it for you, let's say change column F with A)
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-02-2012
    Location
    egypt
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: how to delete duplicated data

    i want to delete duplicated rows , A4 B4 C4 D4 E4 F4 = A9 B9 C9 D9 E4 F4 ....say if A B C D E similar F not similar this is not duplicated 4 me , so in ur code i need to make it from A to F not just changing column

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: how to delete duplicated data

    try this formula.

    Please Login or Register  to view this content.
    If the result is True you have an duplicated row.

    If the result is False you have 2 unique rows.
    Last edited by oeldere; 08-04-2012 at 01:25 PM. Reason: changed get in have
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  10. #10
    Registered User
    Join Date
    08-02-2012
    Location
    egypt
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: how to delete duplicated data

    i didnt mean A4 A9 that was example to show what i need i have hundreds of duplicated data

  11. #11
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: how to delete duplicated data

    you probably do not think about of uploading an example with what you'd like to achive, how yr data looks like after data is added from file 1 to file 2....it should be the best thing you can do at the moment. perhaps someone will give you the right answer.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: how to delete duplicated data

    See the example.

    It a combination of the given solutions of Oeldere and the VBA code of John55.

    Run the macro and see whats happening in collumn K.

    For the future i agree with John55; it's better to uplaod an non confidentional example.

    Please reply if this is what you're up to.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1