+ Reply to Thread
Results 1 to 5 of 5

Equation That Finds Part of a Text

  1. #1
    Forum Contributor garrett.grillo's Avatar
    Join Date
    06-19-2011
    Location
    San Francisco, California
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    194

    Equation That Finds Part of a Text

    Hi All,

    I need an equation that will read a cell and look for a part of a text and if it is found it will return a Y for yes or a N for no.

    Please let me know if I can provide you with anymore information to help me solve this equation.

    Thank You.

    Garrett

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Equation That Finds Part of a Text

    Here is a start for you.

    =IF(ISNUMBER(SEARCH("def","abcdefghijklmnopqrstuvwxyz",1)),"y","n")

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

    Re: Equation That Finds Part of a Text

    One way...

    A1 = Let's Go Pens!

    You want to know if the string "Pens" is located anywhere within cell A1.

    =IF(COUNTIF(A1,"*Pens*"),"Y","N")

    Case is not relative.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor garrett.grillo's Avatar
    Join Date
    06-19-2011
    Location
    San Francisco, California
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    194

    Re: Equation That Finds Part of a Text

    Thank you both for the help!

    Tony Valko, That was it!!! :-)

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

    Re: Equation That Finds Part of a Text

    You're welcome. Thanks for the feedback!

+ 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