+ Reply to Thread
Results 1 to 9 of 9

=IF formula that searches text

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    29

    =IF formula that searches text

    Hello, I'm trying to write a formula that will read text in a cell, and if that cell contains one word somewhere in its sentence, then it will produce a certain output.

    For example, if the cell I reference contains the word "Venture" somewhere within is string of text, I want my formula to output "Venture Capital Fund". Is this possible?

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: =IF formula that searches text

    Assuming the text is in A1, try this formula.

    =IF(ISERROR(FIND(UPPER("venture"),UPPER(A1))),"","Venture Captial Fund")

  3. #3
    Registered User
    Join Date
    09-20-2012
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: =IF formula that searches text

    Amazing!!! Works perfectly

  4. #4
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: =IF formula that searches text

    The following also works:
    =if(countif(a1,"*venture*")=1,"Venture Capital Fund","")
    Please click the * icon below if I have helped.

  5. #5
    Registered User
    Join Date
    09-20-2012
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: =IF formula that searches text

    Thanks for the help!! Trying to figure out how to adapt the formula to pull in "Private Equity Fund" if the referenced cell doesn't contain the word "venture"... any ideas?

  6. #6
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: =IF formula that searches text

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

    the logic behind the formula is
    = if a1 contains venture, display "Venture Capital Fund", otherwise display Private Equity Fund"

  7. #7
    Registered User
    Join Date
    09-20-2012
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: =IF formula that searches text

    That worked brilliantly!! Thanks so much!

  8. #8
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: =IF formula that searches text

    =if(countif(a1,"*venture*")=1,"Venture Capital Fund","Private Equity Fund")

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: =IF formula that searches text

    @ financegrl

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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