+ Reply to Thread
Results 1 to 11 of 11

How to compare to a list and return missing list items in summary. (if/and)

  1. #1
    Registered User
    Join Date
    01-27-2012
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2016, O365
    Posts
    97

    How to compare to a list and return missing list items in summary. (if/and)

    Hello all,

    I currently receive a data dump from a client which is a list of samples, with a corresponding test that needs to be completed on it. Each sample has anywhere between 1 and 10 test that might be assigned to it. The sample number is repeated in the data dump, for each unique test that is requested. I have attached a mock up file which shows what I am trying to accomplish.

    Worksheet 1 is where I will paste the raw data provided. Worksheet 2 is a list of 10 possible tests that could be assigned to this sample. Worksheet 3 is what I want my result to be. Columns B-K are not required to show this way in my result, I just wanted to show a possible intermediate result if it is easier to reach my final result in this way.

    Ultimately what I would like my final result to show is column A and column L (hide B-J to see what I mean)

    I have played with if/and but I am unable to get any results and I am not confident that I am going about it the correct way. Other than my data dump worksheet, I am very open to rearranging the way it works or looks as long as the final result is a summary of which tests need to be removed from each sample.

    Thoughts? Suggestions? Mock-ups? Any help you could provide would be great.

    Les
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: How to compare to a list and return missing list items in summary. (if/and)

    You description and example are confusing. Your list on the "List" sheet appears to show all of the test names whether there is a REMOVE entry under the test name on the "Removal Result" sheet or not. Your description, on the other hand, seems to indicate you want just the names where there is a REMOVE entry under it on the "Removal Result" sheet. And then you thread title seems to be hinting that you want something completely different. Can you please clarify exactly what you want?
    Last edited by Rick Rothstein; 08-03-2020 at 02:56 PM.

  3. #3
    Registered User
    Join Date
    01-27-2012
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2016, O365
    Posts
    97

    Re: How to compare to a list and return missing list items in summary. (if/and)

    Sorry for the confusion. The list sheet is just a reference off all test names for a formula to compare against. This would allow me to later add another test to "look for" should it be needed.

    As far as a result, what I am looking for is just a summary of tests for each sample that are not in the data dump. Just for context, once i receive the data dump from my client, I would like to be able to quickly see what tests are NOT NEEDED for each sample out of the 10 possible.

    I hope this helps. Please let me know if you have other questions.

    Les

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: How to compare to a list and return missing list items in summary. (if/and)

    You are using jargon familiar to you to describe what you want, but I know nothing about your jargon. For the example file you posted, what exact list do you want...

    Red Test, Grey Test, Brown Test

    or...

    Blue Test, Green Test, Yellow Test, Pink Test, Orange Test, Gold Test, Purple Test

  5. #5
    Registered User
    Join Date
    01-27-2012
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2016, O365
    Posts
    97

    Re: How to compare to a list and return missing list items in summary. (if/and)

    Sorry, I'm not a power user so I may not have all the correct lingo, I know no other way to describe it. I'm not sure I understand your question.

    I have uploaded a new copy of the SS hoping it will be clearer.
    Attached Files Attached Files

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

    Re: How to compare to a list and return missing list items in summary. (if/and)

    Try:
    Please Login or Register  to view this content.
    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.

  7. #7
    Registered User
    Join Date
    01-27-2012
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2016, O365
    Posts
    97

    Re: How to compare to a list and return missing list items in summary. (if/and)

    You rock! That's awesome. It worked on the mock up and worked with my actual small batch of data on first test. The only issue I had is that when I went full batch of raw data there was more than 500 rows and it seems to stop working after 500 rows. If this is a limitation, I can make it work by doing it in batches, but the obvious question is, is it a limitation or just a simple tweak of the code?

    Thanks so much Mumps1.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: How to compare to a list and return missing list items in summary. (if/and)

    Quote Originally Posted by bigtunelover View Post
    The only issue I had is that when I went full batch of raw data there was more than 500 rows and it seems to stop working after 500 rows.
    This should work.
    Please Login or Register  to view this content.

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: How to compare to a list and return missing list items in summary. (if/and)

    My take on this one...
    Please Login or Register  to view this content.
    Last edited by sintek; 08-05-2020 at 06:30 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  10. #10
    Registered User
    Join Date
    01-27-2012
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2016, O365
    Posts
    97

    Re: How to compare to a list and return missing list items in summary. (if/and)

    Quote Originally Posted by sintek View Post
    My take on this one...
    Please Login or Register  to view this content.
    This is also working great! So as to not mess with your beautiful code, is there an easy tweak I can pop in that reports "none" instead of a blank cell if there are no tests on the result WS?

    Thanks a bunch!

  11. #11
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: How to compare to a list and return missing list items in summary. (if/and)

    Add red snippet...

    Please Login or Register  to view this content.

+ 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. Formula for checking what items are missing from a list
    By tukae in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2019, 12:09 AM
  2. [SOLVED] Compare a list of strings against a list of keywords to return a partial match
    By randomkiwi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-11-2017, 11:51 PM
  3. [SOLVED] To compare a list of items in column ? with items in all columns that are not blank.
    By JamesJohnson31 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2015, 03:32 PM
  4. [SOLVED] compare list B with list A, return cell data on row where B matched A
    By master-richie in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-04-2015, 01:59 AM
  5. Replies: 4
    Last Post: 06-30-2014, 11:13 AM
  6. [SOLVED] Extracting summary list of larger list showing only items that have quantities
    By BenjaminRCP in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-14-2014, 01:01 PM
  7. Compare two columns and produce a list of 'missing' items
    By woodsonline in forum Excel General
    Replies: 5
    Last Post: 08-05-2008, 04:39 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