+ Reply to Thread
Results 1 to 3 of 3

Finding 2 or More specific words in a sentence inside a Cell in Excel 2007

  1. #1
    Registered User
    Join Date
    05-18-2010
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Thumbs up Finding 2 or More specific words in a sentence inside a Cell in Excel 2007

    Hi All,
    I just registered couple of hours ago and this is my first post.

    My Column A contains person's name and a title of that person

    Example:
    Column A
    (Cell 1) Abraham John Mr.
    (Cell 2) Jones Patricia Mrs.
    (Cell 3) Baldwin Gloria Ms.
    (Cell 4) Thomas Reggie

    In Column B I want a formula which would search for Mr. Mrs. and Ms. and If it finds any of the three words, then it should return as true or it should return false.

    I know this can be done using the find command but I am not able to nest it properly and use it to find all the three words in 1 cell.

    So the output for the first 3 cells of Column A would be True and for Cell 4 would be false.

    Hope I am not confusing you guys and it makes some sense.

    Any help in this regard would be much appreciated Guys!!

    Thanks in Advance!!

    Have a Great Day!!

    Regards,
    Gopal.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Finding 2 or More specific words in a sentence inside a Cell in Excel 2007

    Various options, one might be:

    =ISNUMBER(LOOKUP(9.99E+307,--SEARCH({"Mr.","Mrs.","Ms."},A1)))
    copied down

    (swap SEARCH for FIND if you wish for Mr. <> mr. )

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding 2 or More specific words in a sentence inside a Cell in Excel 2007

    Try:

    =OR(ISNUMBER(SEARCH({"Mr.","Mrs.","Ms."},A1)))

    where A1 contains string.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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