+ Reply to Thread
Results 1 to 10 of 10

Retrieving missing values from a list

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    Sweden
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 2002
    Posts
    26

    Retrieving missing values from a list

    Hello,

    I have made an Excel to illustrate what I need to do.

    I have 2 lists. List A and List B with non-numeric values.

    I want to make a third list called List C, where I gather all the values in List B that did not occur in List A.

    I have tried to find formulas that could work here but with no result.

    Thanks
    /P
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    45,357

    Re: Retrieving missing values from a list

    Which version of Office do you have? Please update your profile accordingly.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    04-25-2017
    Location
    Sweden
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 2002
    Posts
    26

    Re: Retrieving missing values from a list

    Its now updated.

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    Office2010/office 365
    Posts
    1,719

    Re: Retrieving missing values from a list

    Hi,
    please try this in H2 and own:
    =IFERROR(INDEX($G$1:$G$10, AGGREGATE(15,6,(IF(IFERROR(MATCH($G$2:$G$10,$D$2:$D$13,0),TRUE)=TRUE,ROW($G$2:$G$10))),ROWS($A$1:A1))),"")

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    45,357

    Re: Retrieving missing values from a list

    Is this what you want?

    Excel 2016 (Windows) 32 bit
    K
    4
    Name
    5
    Jacob
    6
    Lennart
    7
    Kennet
    Sheet: Sheet1

    If so, it's as simple as loading the two current lists as connection only queries and giving them matching column names, then merging the two using a Right-Anti join type. Here's the M Code:

    Please Login or Register  to view this content.
    To update, you just need to refresh all or set the queries to auto-update.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-25-2017
    Location
    Sweden
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 2002
    Posts
    26

    Re: Retrieving missing values from a list

    Quote Originally Posted by belinda200 View Post
    Hi,
    please try this in H2 and own:
    =IFERROR(INDEX($G$1:$G$10, AGGREGATE(15,6,(IF(IFERROR(MATCH($G$2:$G$10,$D$2:$D$13,0),TRUE)=TRUE,ROW($G$2:$G$10))),ROWS($A$1:A1))),"")
    Did not work Some cells seem to be incorrectly referred.

  7. #7
    Registered User
    Join Date
    04-25-2017
    Location
    Sweden
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 2002
    Posts
    26

    Re: Retrieving missing values from a list

    Quote Originally Posted by AliGW View Post
    Is this what you want?
    Thank you for spending time on your answer. Is it VBA you used for this code? What you did is exactly what I want, I would love to understand how to apply it to another excel file.
    Last edited by AliGW; 11-17-2020 at 05:48 AM. Reason: PLEASE don't quote unnecessarily!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    45,357

    Re: Retrieving missing values from a list

    It's PowerQuery (Get & Transform on the Data ribbon), which is built into Office 365.

    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.

    - Follow this link for a video which demonstrates how to use Power Query code provided.

  9. #9
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    Office2010/office 365
    Posts
    1,719

    Re: Retrieving missing values from a list

    Which cells are missing?
    please see attached. There are only 3 names in list B that do not appear on list A
    Attached Files Attached Files

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    45,357

    Re: Retrieving missing values from a list

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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: 1
    Last Post: 12-19-2014, 06:38 AM
  2. Find missing values - based on looking up a list, comparing against index values
    By anakaine in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-22-2013, 01:31 AM
  3. Replies: 4
    Last Post: 07-16-2012, 06:22 AM
  4. Retrieving Unique Values From A List - TIP
    By ddwebb in forum Excel Formulas & Functions
    Replies: 41
    Last Post: 09-06-2005, 09:05 PM
  5. Replies: 0
    Last Post: 08-28-2005, 11:30 AM
  6. [SOLVED] Retrieving List Values that Do Not Appear in a Second List
    By JM in forum Tips and Tutorials
    Replies: 1
    Last Post: 08-28-2005, 11:28 AM
  7. Retrieving the Minimal / Maximal Values from a Filtered List
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-25-2005, 02:55 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