+ Reply to Thread
Results 1 to 5 of 5

Find Specific Text in Multiple Cells

  1. #1
    Registered User
    Join Date
    04-23-2015
    Location
    amsterdam
    MS-Off Ver
    2010
    Posts
    6

    Find Specific Text in Multiple Cells

    Hey there,

    I'm trying to find a specific substring of text within a range of cells.

    So right now my excel function is

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




    In the current format I get all 0's.

    What I would like the function to do is look in the range of cells for the text "Ambient Dub" ... and if this text is in one of the cells it gives it a 1, and if it is in none of the cells in that range it gives it a 0. The text does not have to be in every single cell... but somewhere within that range. I do not need to know what cell it came from.

    Note: The text is only going to be in one of the cells, but sometimes it is written in the second column rather than the first.
    Last edited by jrbrugger; 06-08-2015 at 01:37 PM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Find Specific Text in Multiple Cells

    Hi jrbrugger,

    Try this formula:

    =IF(ISERROR(HLOOKUP("Ambient Dub",C2:V2,1,FALSE)),0,1)

    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Find Specific Text in Multiple Cells

    You could try this:

    =IF(COUNTIF(C2:V2,"*"&"Ambient Dub"&"*"),1,0)

    - Moo

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Find Specific Text in Multiple Cells

    hi jrbrugger. the problem with your formula is that the search formula is going to give you multiple results. for eg. if "Ambient Dub" is in C1, then your results for the SEARCH formula would be:
    {#VALUE!,1,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!,#VALUE!}
    notice that only the 2nd portion is shown 1. using ISNUMBER, it will then be:
    {FALSE,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE}

    this is an array results. and excel would not know which result to show you. while it's possible to still get a result, there is an easier way. =COUNTIF(C2:V2,"*Ambient Dub*")

    if you have a possibility of many "Ambient Dub" results & you only want to see "1" shown, then:
    =IF(COUNTIF(C2:V2,"*Ambient Dub*"),1,0)

    added a little explanation & slower than Moo. Long time no see, Moo!

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Find Specific Text in Multiple Cells

    Hi benishiryo... long time no see, indeed. But I've been lurking. Just don't have a lot of time to spend on here with kids and life in general ... I try to pop in and help out when I can. =)

    Hope you are well.

    - Moo

+ 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. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  2. [SOLVED] Macro to find specific text in a cell and then create multiple rows above
    By Willardio in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-21-2012, 09:52 AM
  3. Looking back through cells in a column to find Specific Text
    By Grimace in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2010, 02:28 AM
  4. [SOLVED] Find a specific text in multiple cell
    By rateesh in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 04-09-2010, 06:51 PM
  5. Looking back through cells in a column to find Specific Text(s)
    By Grimace in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-23-2010, 01:31 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