+ Reply to Thread
Results 1 to 7 of 7

If cell contains a specific word, then write another word in another cell

  1. #1
    Registered User
    Join Date
    08-23-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    3

    If cell contains a specific word, then write another word in another cell

    Hi,

    I'm trying to use the functiun =IF(ISNUMBER(SEARCH but it does not seem to work. For example, B1=ho hu hi, B2= hi hi hi, B3= hu ho hu, and i want to write "ok" in A1 if B1 contains "ho". So in A1 I write =IF(ISNUMBER(SEARCH("ho",B1)),"ok","") but il tells me my formula contains an error, where am I wrong ?

    Thanks

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: If cell contains a specific word, then write another word in another cell

    =IF(ISNUMBER(SEARCH("Ho",B1)),"OK","") This works for me.. Should work for you too..

    Please attach you workbook if possible.

    Deep
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    08-23-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: If cell contains a specific word, then write another word in another cell

    By the way, i'm using a new computer, I don't know if I have to activate something, i'm quite new at Excel.
    Attached Files Attached Files

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: If cell contains a specific word, then write another word in another cell

    Please see the file attached.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: If cell contains a specific word, then write another word in another cell

    Maybe it's semantics or syntax? Are you translating from Dutch or French?
    For Dutch translations, mind the difference between VIND.ALLES and VIND.SPEC and using semicolon (;) or comma (,) between arguments.
    When I say semicolon, u say comma!

  6. #6
    Registered User
    Join Date
    08-23-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: If cell contains a specific word, then write another word in another cell

    Thanksss it works, don't know what was wrong.

  7. #7
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: If cell contains a specific word, then write another word in another cell

    Glad it helps..

    Deep

+ 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: 3
    Last Post: 07-12-2013, 09:17 AM
  2. Check cell for word, If word exists in cell, assign that cell to corresponding category.
    By Trevasaurus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2012, 12:35 PM
  3. [SOLVED] How to set macro to open word file equal to cell contents of a specific cell
    By ligerdub in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2012, 02:39 PM
  4. Replies: 13
    Last Post: 08-04-2011, 09:41 AM
  5. Replies: 1
    Last Post: 01-25-2011, 10:50 PM

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