+ Reply to Thread
Results 1 to 4 of 4

Check if other strings exist in column based on range string values

  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    Utrecht
    MS-Off Ver
    Excel 2013
    Posts
    48

    Check if other strings exist in column based on range string values

    Hi,

    What I'd like to do is to detect if there are other string values in a column other than in the selection of strings in a range.

    Example data:

    Range Selection (A18:A27)
    Name 1
    Name 2
    ...


    Column S
    Name 1
    Name 1
    Name 2
    Name 4
    Name 2
    Name 3
    ...

    Output 1
    True = if all text labels in Column S are equal to text labels of Range Selection
    False = if there are text labels in Column S that do not appear in the Range Selection

    Output 2
    Provide an overview of the names that are in Column S that are not in the Range Selection

    Let me know if you need more information,

    Jeroen

  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: Check if other strings exist in column based on range string values

    The standard way to detect whether one range contains an item from another cell is to use =MATCH()

    So in your case in T1 copied down enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then filter column T for the value 1 to see all the items that don't match the A18:A27 range, and filter 0 to see all the matches
    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
    08-09-2011
    Location
    Utrecht
    MS-Off Ver
    Excel 2013
    Posts
    48

    Re: Check if other strings exist in column based on range string values

    Thanks for your response. I understand your solution, however I do not want to add any additional columns and then filter since column S is based on a different sheet which contains only 'raw' data that I do not want to alter.

    Do you have a different solution, that just shows the output for all rows instead of filtering based on an index match function?

  4. #4
    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: Check if other strings exist in column based on range string values

    Hi,

    It helps at the outset if all restrictions or conditions are known, e.g. helper columns are verbotten.

    You could use conditional formats in column S

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    which fills the non matching cells with a colour. Then you could use the Autofilter by Colour functionality.

    If helper columns are not allowed then the only way I cna think of extracting to another range is to use a VBA macro.

+ 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] Check if other strings exist in column based on range string values
    By jeroenft in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2018, 07:49 AM
  2. [SOLVED] Check if String is exist in dictionary
    By sunjam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2018, 08:10 PM
  3. Replies: 4
    Last Post: 08-23-2017, 08:11 AM
  4. [SOLVED] Formula to check if any decimal exist in the range of values
    By Masa1989 in forum Excel General
    Replies: 3
    Last Post: 07-27-2015, 03:56 AM
  5. Replies: 3
    Last Post: 03-08-2012, 03:32 PM
  6. Replies: 4
    Last Post: 03-04-2012, 08:34 AM
  7. Does text string exist in range of text strings
    By mkvassh in forum Excel General
    Replies: 2
    Last Post: 04-23-2010, 08:58 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