+ Reply to Thread
Results 1 to 7 of 7

compare between 2 columns to find Missing Names and put it in new column

  1. #1
    Registered User
    Join Date
    02-04-2021
    Location
    Kerbala , Iraq
    MS-Off Ver
    2019
    Posts
    15

    compare between 2 columns to find Missing Names and put it in new column

    Hello guys,

    I need a formula in excel to compare between 2 columns to find Missing Names and put the missing names in new column called Missing Val
    Attached Files Attached Files
    Last edited by tgh12; 02-04-2021 at 02:43 PM. Reason: add more explination

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,109

    Re: compare between 2 columns to find Missing Names and put it in new column

    Hi
    Maybe this in E2 and down:
    =IFERROR(INDEX($B$1:$B$79,AGGREGATE(15,6,(ROW($B$3:$B$79)/(((COUNTIF($H$3:$H$56,$B$3:$B$79)=0)))),ROWS($A$1:A1))),"")

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,800

    Re: compare between 2 columns to find Missing Names and put it in new column

    E2=IFERROR(INDEX($B$3:$B$79,SMALL(IF(ISNA(MATCH($B$3:$B$79,$H$3:$H$56,0)),ROW(B$3:$B$79)-ROW($B$3)+1),ROWS($B$3:B3))),"")

    Control+shift+enter

    copy down

  4. #4
    Registered User
    Join Date
    02-04-2021
    Location
    Kerbala , Iraq
    MS-Off Ver
    2019
    Posts
    15

    Re: compare between 2 columns to find Missing Names and put it in new column

    ok its work many thanks
    can you explain the formula please ?
    because I am beginner level in excel

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,033

    Re: compare between 2 columns to find Missing Names and put it in new column

    Attached you will find your file with the missing names shown. This was accomplished loading both tables into Power Query and joining the tables in an anti-join. This join shows only the names that are in the first table and not in the second..

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Registered User
    Join Date
    02-04-2021
    Location
    Kerbala , Iraq
    MS-Off Ver
    2019
    Posts
    15

    Re: compare between 2 columns to find Missing Names and put it in new column

    ok its work many thanks , however I don't have any experience in power query

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,033

    Re: compare between 2 columns to find Missing Names and put it in new column

    I understand. That is why I gave you links to read and learn about PQ. It is a very powerful piece of Excel that makes these type of issues very easy. If you really want to learn, then pick up a copy of "M Is for (Data) Monkey" a primer by Ken Puls and Miguel Escobar. Amazon is where you will find it.

+ 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: 3
    Last Post: 02-06-2020, 04:37 PM
  2. [SOLVED] Compare two numbers to in column and find which digits are missing
    By Karnik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2017, 10:34 AM
  3. Compare Sheets and find missing Columns
    By anandrajagopal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 08:09 AM
  4. Compare two columns and find missing values
    By happydee50 in forum Excel General
    Replies: 1
    Last Post: 07-17-2013, 12:03 PM
  5. [SOLVED] How to compare two columns and find out the missing elements in one with respect to other
    By syedfahadjalali in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-08-2013, 10:46 PM
  6. [SOLVED] Compare 2 columns find missing data
    By dalerdd in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-05-2013, 10:49 AM
  7. Compare two columns and find missing values
    By ciki022 in forum Excel General
    Replies: 2
    Last Post: 09-11-2011, 03:32 PM

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