+ Reply to Thread
Results 1 to 8 of 8

Comparing two lists with cell values partially different

  1. #1
    Registered User
    Join Date
    11-29-2022
    Location
    Brussels
    MS-Off Ver
    Office 365
    Posts
    2

    Question Comparing two lists with cell values partially different

    Hello all,

    First time posting here.

    I need to compare two lists. In List A I need to find people who are present in list B. But the problem is that the names in list B are not always complete. I need to use a formula to minimize the time spent.

    Detail:

    List A contains all the employees. This list contains the full names of employees. If there's a middle name, or if there are two last names, it'll be present in this one.

    List B Contains only the people whose bonuses are approved. But in this list, the names are simplified, as in, the middle name or the second last name might not be present.

    The task is to populate List A with the data from List B. If a person from List A is present in List B, we should get "Bonus Approved" as result. If a person from List A is not present in List B, then there could be an error, an empty cell, or a text like "Bonus not approved", this is not very important, but nice to have.

    I tried VLOOKUP, but obviously, the results are not complete as the values in the "Name" columns is not always matching exactly.

    Excel example.JPG

    How can modify the formula, or use another one to make sure that even if a name is partially present in list B, the results are shown in List A?

    Example File_Name Compare.xlsx

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Comparing two lists with cell values partially different

    removed by Jt
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,907

    Re: Comparing two lists with cell values partially different

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As you are new here, I shall do it for you this time: https://www.mrexcel.com/board/thread...erent.1223387/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    11-29-2022
    Location
    Brussels
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Comparing two lists with cell values partially different

    Thank you for bringing this to my attention. My apologies for this.

  5. #5
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Comparing two lists with cell values partially different

    With Power query:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by tanasedn; 11-30-2022 at 05:02 AM.
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Comparing two lists with cell values partially different

    tanasedn. You attached the wrong file. There are no results in it!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Comparing two lists with cell values partially different

    Hi, Glen!
    Thank's, i'm still sleeping!
    Changes made!

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Comparing two lists with cell values partially different

    Try

    D23
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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] Comparing lists of values (SIM #'s)
    By time4mzl in forum Excel General
    Replies: 12
    Last Post: 06-17-2015, 12:12 PM
  2. [SOLVED] Comparing 2 Lists (names) and finding missing values
    By karimel_romeo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2014, 11:47 AM
  3. Compare two lists, return value against partially matchng item
    By ExcelWaza in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 07:21 AM
  4. comparing two lists to a set of defined values
    By diggy13 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-22-2013, 08:13 AM
  5. [SOLVED] partially comparing strings vba
    By joetinger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-19-2012, 08:54 PM
  6. Comparing two lists and finding 'similar' values
    By johncassell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2010, 09:29 AM
  7. Comparing lists and returning corresponding values
    By ronoc88 in forum Excel General
    Replies: 1
    Last Post: 07-16-2010, 12:20 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