+ Reply to Thread
Results 1 to 7 of 7

Finding a specific text string throughout an entire column and if there return true/false

  1. #1
    Registered User
    Join Date
    01-06-2015
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Unhappy Finding a specific text string throughout an entire column and if there return true/false

    I'm trying to search for instances of the partial text strings from tab A (Sample string to look for) in tab B (Data to Search). I've used the FIND function but I can't get the logic right to search the entire column in tab b.

    Anyone?
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Finding a specific text string throughout an entire column and if there return true/fa

    Using ISNUMBER(FIND()) is returning an array of answers. Instead I'd use ISNUMBER(MATCH()) to find if it is in one of them.

    Also, it's a good practice to declare row numbers in your ranges as you're otherwise searching all 1.04MM rows. While not much of an issue with a few formulas, you'll notice significant performance degradation with more than a few dozen of them.

    =ISNUMBER(MATCH("*"&A2&"*",'data to search'!$A$2:$A$52,0))

    If you insist on using your original logic, you could instead encapsulate the formula with SUMPRODUCT and test if >0.

    =SUMPRODUCT(--ISNUMBER(SEARCH(A2,'data to search'!$A$2:$A$52)))>0
    Last edited by daffodil11; 01-06-2015 at 06:46 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Finding a specific text string throughout an entire column and if there return true/fa

    try
    =ISNUMBER(MATCH("*"&A2&"*",'data to search'!A:A,0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Finding a specific text string throughout an entire column and if there return true/fa

    Try this

    =ISNUMBER(LOOKUP(25^25,SEARCH(A2,'data to search'!$A$2:$A$52)))

    Row\Col
    A
    B
    1
    Chassis Name (adjusted)
    PRP-3 ?
    2
    pip-bb10-akr FALSE
    3
    pip-bb10-ana FALSE
    4
    pip-rr2-chi TRUE
    5
    pip-rr2-fw FALSE
    6
    pip-rr2-pen FALSE
    7
    pip-rr2-sj TRUE
    8
    sl-bb20-ams FALSE
    9
    sl-dr10-dal FALSE
    10
    sl-dr11-dal FALSE
    11
    sl-gw1-pen FALSE
    12
    sl-pe10-akr TRUE
    13
    sl-pe10-albrm FALSE
    14
    sl-rr10-lon TRUE
    15
    sl-rr11-par.sprintlink.net TRUE
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    01-06-2015
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Finding a specific text string throughout an entire column and if there return true/fa

    Thanks - Daffodil11 and Martindwilson! it worked!

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Finding a specific text string throughout an entire column and if there return true/fa

    Hurray! Klondike bars for everyone!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding a specific text string throughout an entire column and if there return true/fa

    Quote Originally Posted by daffodil11 View Post
    Hurray! Klondike bars for everyone!
    Over here in Hooterville it's a bit brisk. How about a nice steaming hot bowl of chili?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Help! 1 - Lookup specific text from column E and insert true/false - IF
    By KClem in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2015, 06:38 PM
  2. [SOLVED] Return True/False by searching a value in an array of string
    By aiyathomas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-30-2013, 12:35 PM
  3. Replies: 9
    Last Post: 01-21-2013, 01:54 AM
  4. Replies: 6
    Last Post: 10-06-2011, 12:32 AM
  5. Replies: 3
    Last Post: 03-12-2010, 02:57 PM

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