+ Reply to Thread
Results 1 to 5 of 5

Compare two names list and compare other column aftrerwards

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Compare two names list and compare other column aftrerwards

    I have a Excel file with two sheets.

    Both sheets have names on it - First name and Last Name. I need to compare the sheets to see if there are duplicates in the first sheet and if there is then find the value against the name in Sheet 2 - highlight the name in Sheet 1.

    For example:

    If Sheet 1 has a duplicate name as Sheet 2 and that name has the value Card in Sheet 2 then need to highlight that name in a particular colour otherwise another colour.

    See attachement
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Compare two names list and compare other column aftrerwards

    I don't think this can be done as pure formulas, but this VBA macro will do it
    VLOOKUP.xlsm

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Compare two names list and compare other column aftrerwards

    Okay, try this in Sheet1!C3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Confirm with Ctrl+Shift+Enter (this is an array formula, so just using enter will NOT work), if it is entered right curl braces will be at the start ({) and end (}) of the formula
    Drag this down to C19
    This will give the Value of Sheet2 Column A if there is a match

    Next, select the range of A3:C19 on sheet1,
    go to Conditional Formatting, New Rule, Use Formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Format,Fill, select a fill color for a match, OK,OK

    go to Conditional Formatting, New Rule, Use Formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Format,Fill, select a fill color for a non-match, OK,OK

    Note - the name matches must be exact, if there are leading or trailin spaces in one name that is not in the "matching name", the result will be negative on the match

    See Attached

    Hope this helps
    Attached Files Attached Files
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Compare two names list and compare other column aftrerwards

    Another option is to add a duplication check sheet. On Sheet 3 it will concenate each name from sheet1 and sheet2 (in case of any same name situations), then compare them to see if there is a match. If so it will check to see if "Card" is also listed with the duplicate name (From Sheet 1) and then puts "Duplicate" in the proper cell. Where you see "Duplicate" will indicate that the same name in the row from sheet1 is the one with the duplicate listed on sheet 2.



    VLOOKUP(w Dupesheet).xlsx
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

  5. #5
    Registered User
    Join Date
    10-25-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Compare two names list and compare other column aftrerwards

    Thank you very much.

+ 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] I need to compare student quiz submission names/grades against a master list of names.
    By NoxExcel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2013, 08:00 PM
  2. Compare for matching names in Column A and calulate variance on a match
    By stashu117 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2013, 11:02 AM
  3. Compare 2 column list across 2 sheets
    By sirknightly in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2005, 09:05 PM
  4. [SOLVED] Compare 2 column list across 2 sheets
    By sirknightly in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 05:05 PM
  5. Compare 2 column list across 2 sheets
    By sirknightly in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM

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