+ Reply to Thread
Results 1 to 4 of 4

Trying to find a word and put a 1 in another column

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Trying to find a word and put a 1 in another column

    I have searched and found formulas but cannot get it to work. I simply want to search for a word e.g. CIO in a job title and then put a 1 in the column next door...

    Sounds simple but despite trying heaps of websites cannot do it. I managed to do it but if the string is not present I get #VALUE rather than a blank.

    Help appreciated.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Trying to find a word and put a 1 in another column

    Hello rpage,

    Assume your title is in A1, B1 try,

    =IF(ISNUMBER(SEARCH("CIO",A1)),1,"")

    Is this not you are looking, please attach a sample file & your expecting outcome.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    06-20-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Trying to find a word and put a 1 in another column

    Excellent! It works! Thanks really appreciated! Blessings on you!

    If I want to include extra words how would the formula be expanded?
    Last edited by rpage; 06-20-2011 at 06:42 PM.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Trying to find a word and put a 1 in another column

    Say you want a 1 if any of the following are in the cell

    Apple
    Banana
    Lemon

    Then try this formula

    =IF(COUNT(SEARCH({"Apple","Banana","Lemon"},A1)),1,"")

    .....or list the "fruits" in a range of cells, e.g. K2:K4 and use

    =IF(COUNT(INDEX(SEARCH(K2:K4,A1),0)),1,"")
    Audere est facere

+ 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