+ Reply to Thread
Results 1 to 7 of 7

Need to Compare Names in Two Columns

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Elgin, IL
    MS-Off Ver
    Excel 2006
    Posts
    29

    Need to Compare Names in Two Columns

    I am using Excel 2010. I am trying to use VLOOKUP to compare the First and Last Name in one column to the same structure of names in a 2nd column. The names are sorted in ascending order based on the first name in both columns. My Table_Array is the 2nd column of names. My Lookup_Value is the names in the first column. I thought the Col_Index_Number should be 1 since my look-up table is only one column. I am looking for an exact match. I tried the following variations:
    =VLOOKUP(F2,G2:G166,1,FALSE)
    =VLOOKUP(F2,G2:G166,2,FALSE)

    Column G has more entries than column F. I have reversed them so that the longer list is the first column but that didn't work either and goes against the VLOOKUP logic, but I tried anyway.

    I received an error on everything I tried. I'm not sure what I'm doing wrong. I don't know if the fact that the names in columns F and G are the result of a CONCATENATE formula is an issue. I also tried using MATCH with no success.

    I'd appreciate any suggestions.

    Thanks,
    MLCall

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Need to Compare Names in Two Columns

    if you want to see if the name appears in the list you could use a countif()

    =VLOOKUP(F2,$G$2:$G$166,1,FALSE)
    so that will return the name G if its the same as F2
    then copy down - where there is no match it will return #N/A

    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need to Compare Names in Two Columns

    It sounds like the two data sets are not actually matching. Can you upload a sample file for us to see? Also, you could manually find 2 names that you think should match and try: =EXACT([Column F reference],[Column G reference]) and see if it returns TRUE or FALSE.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  4. #4
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Austin, TX - USA
    MS-Off Ver
    Microsoft 365
    Posts
    114

    Re: Need to Compare Names in Two Columns

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-11-2012
    Location
    Elgin, IL
    MS-Off Ver
    Excel 2006
    Posts
    29

    Re: Need to Compare Names in Two Columns

    Wayne,

    Thanks for your help. I had to use TRIM to make sure all extraneous spaces were removed before I could get the formula to work. Sorry for the delayed update.

    MLCall

  6. #6
    Registered User
    Join Date
    01-11-2012
    Location
    Elgin, IL
    MS-Off Ver
    Excel 2006
    Posts
    29

    Re: Need to Compare Names in Two Columns

    Thanks for taking the time to respond. I used VLOOKUP because it is my manager's choice.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Need to Compare Names in Two Columns

    Thanks for the rep

+ 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: 4
    Last Post: 03-09-2014, 06:54 AM
  2. [SOLVED] how compare two names, diffcult to find name miss match in 2 columns
    By vengatvj in forum Excel General
    Replies: 6
    Last Post: 10-23-2013, 08:34 PM
  3. [SOLVED] Compare columns of names
    By galaxytraveler42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2013, 05:11 AM
  4. Look up and compare names from two columns, matching issues
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2012, 02:16 PM
  5. How to compare names in two columns in excel
    By si_ako in forum Excel General
    Replies: 1
    Last Post: 12-03-2006, 09:33 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