+ Reply to Thread
Results 1 to 9 of 9

Find not listed items

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Find not listed items

    Hello,
    I have this attached spreadsheet which contains two columns.
    The rows of those columns vary.
    I am trying to get a macro (not looping) to display a message indicating the items from the column at the right (in yellow), not found in the column on the left.
    In this case: COX11; COX10.
    Could you please advise?
    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,882

    Re: Find not listed items

    What do you mean by "not looping"?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    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,015

    Re: Find not listed items

    With Power Query which is part of your version of Excel.



    Excel 2016 (Windows) 32 bit
    A
    1
    Table3.Column1
    2
    W18
    3
    W15
    4
    W14
    5
    CC2 Low TUZ
    6
    CC2 High TUZ
    7
    COX11
    8
    W17 TUZ
    9
    W11 TUZ
    10
    COX10
    11
    DDR TT 4 FR
    12
    DDR TT 7 FR
    Sheet: Merge1
    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

  4. #4
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Find not listed items

    Mumphs1,

    "not looping" - I meant without using a nested loop.
    I am able to do that but it can take too long.
    I am thinking about a way to compare the two ranges and display the not matching line items.
    FYI
    Thanks for looking into this!

  5. #5
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Find not listed items

    alansidman,

    Thanks for looking into this.
    I need it though, through a VBA.
    Thanks!

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,882

    Re: Find not listed items

    This macro uses looping through an array and therefore should be pretty fast:
    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,155

    Re: Find not listed items

    If you don't wanna use a loop, then using a Left Join in ADO/SQL may be an alternative to PQ

    Note that, you've to add the reference "Microsoft ActiveX Data Objects 6.1 Library" to your project via Tools >> References menu in VBE

    Sample file is also attached....

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Haluk; 07-27-2021 at 12:45 PM.

  8. #8
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Find not listed items

    Mumps1 and Haluk,

    Thanks a lot.
    Both solutions work!

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,882

    Re: Find not listed items

    Glad to help out.

+ 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] Assigning the same occurrence count to listed items that have been multiplied
    By Marbleking in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2020, 12:29 PM
  2. [SOLVED] calculate Sumproduct weighted average for the listed items
    By abdumon7 in forum Excel General
    Replies: 7
    Last Post: 04-16-2019, 06:22 AM
  3. [SOLVED] Non listed item to be counted in other items
    By skhari in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-21-2014, 02:08 PM
  4. Replies: 3
    Last Post: 06-27-2012, 02:38 PM
  5. Obtaining sum from multiple listed items
    By dainbram in forum Excel General
    Replies: 4
    Last Post: 09-08-2008, 06:50 PM
  6. [SOLVED] Query Items Listed During a Specific Time Period
    By DukeDevil in forum Excel General
    Replies: 0
    Last Post: 07-06-2006, 03:45 PM
  7. Replies: 3
    Last Post: 03-16-2005, 01:06 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