+ Reply to Thread
Results 1 to 4 of 4

Function for searching a cell for any instances of text and returning a Yes or No

  1. #1
    Registered User
    Join Date
    05-24-2022
    Location
    Utah, USA
    MS-Off Ver
    365
    Posts
    2

    Function for searching a cell for any instances of text and returning a Yes or No

    I have some data I can't figure out how to recode so I can use it in Pivot tables

    The data is formatted as text. I need the formula to search the text in a cell, then return a Yes or No if any of the specific text strings I'm looking for are found. I.e. "classical" or "early."

    Here are some examples of the cell contents. The cells I am recoding may have one text string or many o
    • I am a professional musician (play for pay)--as a secondary source of income,I teach music to others - as a primary source of income,I play occssionally for others (holiday events or church or parties) but not for pay,I play at home for personal enjoyment.
    • Classical, folk, older pop, older country, early,
    Last edited by flute_studio; 05-24-2022 at 04:08 PM. Reason: Solved.

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: Function for searching a cell for any instances of text and returning a Yes or No

    If your data starts in A1 then try this:

    =IF(OR(IFERROR(SEARCH({"classical","early"},A1),FALSE)),"Yes","No")
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Registered User
    Join Date
    05-24-2022
    Location
    Utah, USA
    MS-Off Ver
    365
    Posts
    2

    Re: Function for searching a cell for any instances of text and returning a Yes or No

    Thank-you! This worked perfectly.

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: Function for searching a cell for any instances of text and returning a Yes or No

    Glad it worked and thanks for the rep!

+ 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. Searching for multiple text instances across range of cells
    By ROTHERS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2020, 05:52 AM
  2. Searching for text strings in one cell, returning values from another
    By AwagentX in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-20-2015, 04:42 AM
  3. Replies: 9
    Last Post: 10-29-2013, 05:19 AM
  4. searching an array from a column set of text and returning a value..
    By bebop1337 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-07-2013, 05:06 PM
  5. Text searching within a cell, returning the nearest value.
    By starwarrior in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-29-2012, 09:38 AM
  6. Searching for a text string in a list and returning a value
    By Panda2012 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-02-2011, 10:17 PM
  7. Searching multiple xlsx files to find all instances where cell K14<>0
    By hudwink in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-06-2011, 05:55 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