+ Reply to Thread
Results 1 to 4 of 4

Combining an IF and Find function

  1. #1
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    455

    Combining an IF and Find function

    Hi all,

    Trying to write an if formula to do the following:
    If the text in cell A1 contains the word "Port", generate the word "INTERNATIONAL" in B1.
    If A1 contains the word "MINE", generate the word "DOMESTIC" in B1.

    I played around with a combination of an if and find formula but struggling a bit. Attached my workings
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Combining an IF and Find function

    Maybe something like this:

    =IF(ISNUMBER(SEARCH("Port",A1)),"INTERNATIONAL",IF(ISNUMBER(SEARCH("Mine",A1)),"DOMESTIC","Other"))

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Combining an IF and Find function

    Perhaps =IF(ISNUMBER(SEARCH("port",A1)),"international",IF(ISNUMBER(SEARCH("min",A1)),"domestic",""))

  4. #4
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    455

    Re: Combining an IF and Find function

    nice one thanks peeps!

+ 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