+ Reply to Thread
Results 1 to 4 of 4

Compare First Name and Last Name in One Workbook with First and Last Name in Another

  1. #1
    Registered User
    Join Date
    08-26-2014
    Location
    Wisconsin
    MS-Off Ver
    2010
    Posts
    2

    Compare First Name and Last Name in One Workbook with First and Last Name in Another

    What I'd like to do is write a function to compare someone's first and last name from one workbook to a table of first and last names in another, uneditable spreadsheet. The function should then mark "Y" if the person has the same full name (i.e. =(First&" "&Last)) or "N" if their full name is not in the other workbook.

    What I tried so far was the following:
    =IF(AND([Last]='Other Workbook.xlsm'!Table_ExternalData_1[LastName],[First]=INDEX('Other Workbook.xlsm'!Table_ExternalData_1[FirstName], MATCH([Last],'Other Workbook.xlsm'!Table_ExternalData_1[LastName],0))),"Y","N")

    Basically my intended logic behind this was as follows:
    Search for a last name in the other workbook. If that last name exists, then compare the first names. If the first and last names are the same, write "Y". If not, write "N".

    I also tried this much simpler function, which should accomplish the same goal:
    =IF(CONCATENATE([First]&" "&[Last])=CONCATENATE('[Other Workbook.xlsm]Sheet2'!$E:$E&" "&'[Other Workbook.xlsm]Sheet2'!$F:$F),"Y","N")

    Both functions are not meeting my intentions. If anybody has any suggestions on how to improve my formulas or on why it is not working, I'd really appreciate it the help.

    Thanks!

  2. #2
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: Compare First Name and Last Name in One Workbook with First and Last Name in Another

    Here's an idea - take a look at the attachment.
    Matching Names.xlsx
    You either quit or become really good at it. There are no other choices.

  3. #3
    Registered User
    Join Date
    08-26-2014
    Location
    Wisconsin
    MS-Off Ver
    2010
    Posts
    2

    Re: Compare First Name and Last Name in One Workbook with First and Last Name in Another

    Thank you for your help! Do you know of any way to do it without making a "From non-writable notebook" column? The non-writable notebook contains massive amounts of data.

  4. #4
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: Compare First Name and Last Name in One Workbook with First and Last Name in Another

    You're welcome. Not that I know off... but there are people more experienced than me here.

+ 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] Compare two workbook VBA
    By maria.blue44 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-17-2013, 02:48 PM
  2. Equal/Match/Compare a cell from a workbook with a range in another workbook
    By pakillow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2012, 04:05 PM
  3. [SOLVED] Compare two workbook
    By stimea in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-11-2012, 09:23 AM
  4. Using VB to Compare Worksheet from different Workbook
    By marcmade in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2009, 04:05 AM
  5. Q: compare and replace in a workbook
    By Arnfinn Hakkebo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2005, 08:06 AM

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.6.0 RC 1