+ Reply to Thread
Results 1 to 3 of 3

macro to check for duplicates and copy data if no duplicate found

  1. #1
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2003
    Posts
    6

    macro to check for duplicates and copy data if no duplicate found

    Hi,

    I am trying to write a macro that runs when sheet2 is clicked on. what im tying to get the macro to do is checks all the entries (which are names of people) in sheet 1, column B and looks for duplicates in sheet2 column B. If a duplicate is not found in sheet2, it will copy link all of that row to sheet2. Also, if a cell is found blank in sheet1, to just skip it. I have tried looking in the forum for help but all the codes i find are doing for i=1 and j=1, then loop. From my understanding, this is just checking one cell against another cell and then truncating by one, assuming that the duplicated will fall on the same row. I need a macro that compares each cell with the whole list. Any help would be appreciated. Thank you.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: macro to check for duplicates and copy data if no duplicate found

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: macro to check for duplicates and copy data if no duplicate found

    Cross-posted and potentially solved here
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ 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. Replies: 1
    Last Post: 09-22-2015, 02:47 AM
  2. [SOLVED] Please help Macro to find duplicate / move data from duplicates into one row
    By petitesouris in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 04-26-2015, 11:17 PM
  3. Vlookup with duplicate check and auto fill on duplicates
    By vjmcdonnell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2013, 11:14 AM
  4. [SOLVED] Macro to find column with duplicates, for each of those check another column for duplicate
    By MaartenKoller in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-17-2013, 10:09 AM
  5. [SOLVED] Find Duplicates, check value in another column for each duplicate
    By labrooy in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-09-2012, 06:57 PM
  6. Check for duplicate, then if found check for any changes in a different column?
    By brenweb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2012, 07:39 AM
  7. Macro to check for blank cell entry, copy previous value, and check for duplicates
    By xPunxNotDeadx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:33 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