+ Reply to Thread
Results 1 to 6 of 6

Highlighting Duplicate names in second file, after comparing to several sheets in first.

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    4

    Highlighting Duplicate names in second file, after comparing to several sheets in first.

    I know theres a way to do this, but I cant figure out how to get it to work automagically.

    would it be a macro in a third file?

    this is a daily procedure that is a minor PITA, and somewhat time consuming.

    as an example: todays master file has 7 sheets. names are column 1, with 3 rows of header labels
    sheet one: 115 names
    sheet two: 37 names
    sheet three: 3488 names
    sheet four : 70 names
    sheet five : 1771 names
    sheet six : 1771 names
    sheet seven 1771 names

    second file has 70 names on one sheet, names are column 2, one row of header info.

    the same names appear in several sheets on the master file.
    (example: sheets 5,6&7 are often identical)


    the goal is to automate the comparison of the second file (only has one sheet) to the first file (all sheets) looking for the same name.

    any names existing in BOTH files should ONLY be highlighted in the second file.

    save revision of second file with current date ammended to file name, then do the same thing tomorrow.

    any ideas on where I should start?

    Thank you for any suggestions!

    J

  2. #2
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Highlighting Duplicate names in second file, after comparing to several sheets in firs

    Hi,

    Could you attach a sample of the workbooks? It will make debugging and coding easier. Remove any sensitive information.

    Also the second file that you are comparing to where is it located in a specific location? or varies?

    Thanks

  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: Highlighting Duplicate names in second file, after comparing to several sheets in firs

    save revision of second file with current date ammended to file name, then do the same thing tomorrow
    apart from anything else, this part will require VBA.

    My question though, would be why you need 7 sheets with names, instead of just 1 sheet with all the names? Even if there was something specific about each W/S, you could still add a column to the 1st sheet to ID the name/sheet and just have all the names on 1 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
    09-11-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Highlighting Duplicate names in second file, after comparing to several sheets in firs

    7 sheets within the first file are representative of 7 different divisions.

    apparently someone combines 7 files monthly to make this task a little less irritating for me..



    as far as posting, the relevant data is simply a column of names in relation to their retirement/departure/firing date, so there really isn't much i can post as an example that would be useful for debugging..
    there is a great amount of extraneous data, and all I'm interested in are name matches, which are in the form of "last,first" within the same cell.

    after inquiring, apparently a list of the duplicated names would work nicely, as opposed to just highlighting names within a duplicate of the second file.


    basically file 1 is a monthly list of everyone who has access to a particular company resource,
    file 2 is the list of people leaving the company for whatever reason, who may or may not have access to said resource.
    the idea is to find the people leaving who DO have access/accounts and pass that filtered info to the relevant admin to remove their accounts from the system.
    (yup- i know its a little bit of a mess, but its what i get to deal with)

  5. #5
    Registered User
    Join Date
    09-11-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Highlighting Duplicate names in second file, after comparing to several sheets in firs

    Sanitized for your protection:Main File.xlsxSecondary file.XLS

    Again- any assistance is greatly appreciated!

    T

  6. #6
    Registered User
    Join Date
    09-11-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Highlighting Duplicate names in second file, after comparing to several sheets in firs

    I think I found a way to make sure there are no mistakes with names by instead comparing the email addresses.
    I'm still trying to figure out how to make a third file with ONLY the rows that have email addresses that match, consolidated so that I can see all duplicates without scrolling thru the list.

+ 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. Highlighting Duplicate Values within Sheets
    By yakabod in forum Excel General
    Replies: 5
    Last Post: 06-18-2013, 11:21 AM
  2. [SOLVED] Highlighting the same cell in one workbook with multiple sheets with various sheets names.
    By DanielRay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2013, 01:50 PM
  3. Comparing 2 sheets and highlighting completed values
    By norrillous in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2013, 02:44 AM
  4. VBA help: Sorting names among different sheets and highlighting
    By kdeppe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-02-2011, 09:21 AM
  5. Finding and highlighting duplicate names
    By Traymond in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2009, 11:14 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