+ Reply to Thread
Results 1 to 9 of 9

Search a string for a specific text value from cells

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    80

    Search a string for a specific text value from cells

    I have a list of information in column A of a worksheet. I want to check each cell, to see if it is contained within a string, and if so display a msg box"found"

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Search a string for a specific text value from cells

    without seeing what you are working with...try =if(isnumber(search()),"Found",""), copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: Search a string for a specific text value from cells

    Quote Originally Posted by FDibbins View Post
    without seeing what you are working with...try =if(isnumber(search()),"Found",""), copied down
    Attached a sample workboot. I need to search, Sheet1 column A, and go row by row checking if the text value found there is found within a predefined string.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Search a string for a specific text value from cells

    what/where is your prefered string?

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: Search a string for a specific text value from cells

    Please Login or Register  to view this content.
    ConnectorNum is a string that I am searching in. It is defined earlier. This above code doesn't work however, I get type mismatch on the testvalue line..

  6. #6
    Registered User
    Join Date
    11-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: Search a string for a specific text value from cells

    Any ideas?

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search a string for a specific text value from cells

    Few errors

    Please Login or Register  to view this content.

  8. #8
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Search a string for a specific text value from cells

    Please Login or Register  to view this content.



  9. #9
    Registered User
    Join Date
    11-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: Search a string for a specific text value from cells

    Quote Originally Posted by AB33 View Post
    Few errors

    Please Login or Register  to view this content.
    This is helpful, thanks! I got it to work.

+ 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. Excel 2007 : Search specific text in a string
    By nlm in forum Excel General
    Replies: 7
    Last Post: 12-14-2011, 05:38 AM
  2. search for specific text pattern within string
    By nzdzy2 in forum Excel General
    Replies: 3
    Last Post: 10-10-2011, 11:47 AM
  3. Search for any Text String in specific range and copy + offset + move
    By FN2010 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-05-2010, 07:04 PM
  4. Search for specific text in a string and replace
    By VegasL in forum Excel General
    Replies: 5
    Last Post: 12-04-2009, 04:45 PM
  5. search for specific characters in text string and separate them out
    By neowok in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-09-2008, 09:21 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