+ Reply to Thread
Results 1 to 5 of 5

search for sub string

  1. #1
    Registered User
    Join Date
    01-09-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    search for sub string

    Hi guys,

    I have a column with text that can contain a number of words one of which is 'UK & Europe'.

    I want to have another cell which will contain the value EMEA if the the cell mentioned above contains the word UK.

    Any ideas how to do this as I'm stumped... I get a #value in cells that dont contain the word when using the formula

    =IF(FIND("UK",H27),"EMEA","ROW")

    Thanks
    Last edited by Geezer34; 01-09-2009 at 10:37 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446
    Hi,

    Find produces an error if there is no match, so,

    =IF(ISERROR(FIND("UK",H27)),"ROW","EMEA")

    should work
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    you are close, try
    Please Login or Register  to view this content.
    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  4. #4
    Registered User
    Join Date
    01-09-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8
    Thanks guys - all seems to work on this one...

  5. #5
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    Thanks for the feedback - I'm pleased we could help

    Rob

+ 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