+ Reply to Thread
Results 1 to 3 of 3

Macro shows duplicated entries but sometimes they are not duplicated due to data.

  1. #1
    Forum Contributor
    Join Date
    08-02-2005
    Location
    LONDON
    MS-Off Ver
    OFFICE365
    Posts
    165

    Macro shows duplicated entries but sometimes they are not duplicated due to data.

    I was given this macro to delete matching records from sheets 1 & 2. It seems to work good but the issue I seem to be having is when there is 2 entries exactly the same in sheets 1 and 2 its coming up pointing out that its a duplicate entry. This is supposed to be the case but when there is 1 entry in sheet 1 and then 2 entries in sheet 2 the same then this is a duplicated entry and needs marking up as duplicate.

    Can this macro be amended to do that?

    Please Login or Register  to view this content.
    Last edited by tweacle; 03-05-2020 at 02:58 PM. Reason: trying to put macro code in

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro shows duplicated entries but sometimes they are not duplicated due to data.

    Hi,
    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.
    Indicate with a few examples which records you would want deleted

    I can't help thinking there is a much simpler macro which can avoid looping code and use standard Excel MATCH functions to identify duplicates then delete them



    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    08-02-2005
    Location
    LONDON
    MS-Off Ver
    OFFICE365
    Posts
    165

    Re: Macro shows duplicated entries but sometimes they are not duplicated due to data.

    Right here is one example of what I have.

    On sheet 1 it shows data 1025 5698 23/05/2019 £10.00 twice and also twice on sheet 2. When I run the macro at present it shows it as a duplicate on sheet 2 but it is not a duplicate as there are 2 entries on sheet 1 and 2..
    This will need deleting as per macro.

    On sheet 2 it shows data 2568 5666 26/02/2020 £12.00 twice but only once on sheet 1. This is a DUPLICATE and need it marking as dup
    Attached Files Attached Files
    Last edited by tweacle; 03-05-2020 at 04:55 PM. Reason: file error

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to calculate time difference for duplicated entries
    By mahershams in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-14-2014, 10:36 PM
  2. Replies: 6
    Last Post: 02-26-2013, 07:43 AM
  3. Replies: 2
    Last Post: 06-29-2012, 03:22 PM
  4. Replies: 1
    Last Post: 04-02-2012, 11:07 PM
  5. Hiding Non-Duplicated Entries
    By Lana in forum Excel General
    Replies: 7
    Last Post: 06-30-2005, 05:54 AM
  6. Find & delete duplicated entries.
    By Ken G. in forum Excel General
    Replies: 1
    Last Post: 04-21-2005, 02:06 AM
  7. how to delete duplicated entries from an excel list
    By stewart in forum Excel General
    Replies: 2
    Last Post: 03-22-2005, 04:06 PM

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