+ Reply to Thread
Results 1 to 7 of 7

Thread: Macro help for duplicates on two workbooks

  1. #1
    Registered User
    Join Date
    05-27-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010 Profession
    Posts
    3

    Macro help for duplicates on two workbooks

    I have first and last names on two different columns for both workbooks. Each individual has a different username which is also organized in another column but in only one of those two workbooks. Workbook 1 does not have the usernames. Workbook 2 has the usernames but also has extra individuals. Is there a macro that can compare the individuals and match the correct username from Workbook 2 to the individuals in Workbook 1. If that makes sense. Thanks

  2. #2
    Valued Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007
    Posts
    471

    Re: Macro help for duplicates on two workbooks

    concatenate the names on both workbooks then do a vlookup? you won't need a macro for this i highly doubt.

    Can you upload your two workbooks or sample data so i can do this for you?
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Registered User
    Join Date
    05-27-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010 Profession
    Posts
    3

    Re: Macro help for duplicates on two workbooks

    I uploaded the workbooks. hope this helps.
    Last edited by vanthaman; 05-27-2011 at 05:01 PM.

  4. #4
    Valued Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007
    Posts
    471

    Re: Macro help for duplicates on two workbooks

    see what i've done in column g and h
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  5. #5
    Registered User
    Join Date
    05-27-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010 Profession
    Posts
    3

    Re: Macro help for duplicates on two workbooks

    thank you! exactly what I needed

  6. #6
    Registered User
    Join Date
    10-13-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Macro help for duplicates on two workbooks

    Hi, I have a query if you can please help me.

    How can we check duplicate record from an open workbook to another closed workbook through VBA

    I have two workbooks one is employee and another is employee database.xls.

    I want if I save data of employee workbook through Macro in Employee Database it should check if the employee code already exist if found return back or pass the entry to Employee Database.

    Can anybody help me on this please.

  7. #7
    Forum Guru ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    traded up
    MS-Off Ver
    2003 & 2010
    Posts
    1,905

    Re: Macro help for duplicates on two workbooks

    yogeshwarv,

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    “To sin by silence when they should protest makes cowards of men.” ~ Abraham Lincoln

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0