+ Reply to Thread
Results 1 to 8 of 8

extract only certain values from a list which contains empty rows

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Question extract only certain values from a list which contains empty rows

    I have a worksheet in which I'm trying to extract certain values from List A (which DOES contain empty rows), but only those values which appear in another list of values (List B). Here is an example:

    List A:
    chihuahua

    great dane
    labrador retriever

    siamese

    tabby

    terrier

    List B:
    akita
    chihuahua
    collie
    great dane
    irish setter
    labrador retriever
    rottweiler
    terrier
    weimeraner

    Is there a formula/macro/etc I could use which would return the following:
    chihuahua
    great dane
    labrador retriever
    terrier

    Thank you in advance for your assistance!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: extract only certain values from a list which contains empty rows

    Hi,

    One way. Use a helper column alongside list B and enter the formula
    =IF(ISERROR(MATCH(A1,list_a_range,FALSE)),"No Match","Match")

    Copy this down and use a standard Excel Filter to either filter in place or extract to another range those rows which contain the word "Match".
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: extract only certain values from a list which contains empty rows

    Thank you very much, Richard, for the helpful response!

    However, I'm hoping I can find a dynamic solution; the values in List A will change each month, and it'd be great if the returned values could automatically update in turn. Do you know of a way to achieve this?

    Thanks again!

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: extract only certain values from a list which contains empty rows

    Or this CSE array (Confirm with Ctrl+Shift+Enter, not just Enter)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: extract only certain values from a list which contains empty rows

    Here's a dynamic version, the lists can be any length
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See tthis workbook for the Dynamic Names, "List_A" & "List_B"
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: extract only certain values from a list which contains empty rows

    Marcol -- that's amazing. Thank you so much!! That definitely accomplishes what I wanted.

    I really appreciate both of your for providing such prompt and expert help with this!!

    ~ truly amazed

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: extract only certain values from a list which contains empty rows

    Happy to help ...

    Did you see post #5?

  8. #8
    Registered User
    Join Date
    02-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: extract only certain values from a list which contains empty rows

    I did, and thank you much for that adjustment as well!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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