+ Reply to Thread
Results 1 to 5 of 5

Conditional formating on text values

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

    Conditional formating on text values

    Hi guys,

    Been hunting around the forums but cant seem to find quite what I want.

    I want to specify the background of a cell to be red if the text in that cell contains a specific word.

    e.g. cell a1 will have the text 'Rest of World' (without quotes). I want this to show as red if it contains the word 'of'.

    Of course the cell may contain other words but this illustrates what I'm looking to achieve.

    I tried the following conditional formula but this does not work:

    =IF(SEARCH("of",H3)>1,1,0)

    Thanks for feedback :-)
    Last edited by Geezer34; 01-09-2009 at 11:25 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,445
    Hi,

    This wrks for me:

    =FIND("of",H3)
    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
    Registered User
    Join Date
    01-09-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8
    Yep that certainly works for a cell that has that text in. Unfortunatley it also modifies those cells that does not have that text in i.e. UK/Europe.

    Any other ideas about the formula I need to use?

  4. #4
    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,445
    I can't recreate this performance. What is the range of cells to which you are applying the conditional format? Are there any other conditional formats currently active?

  5. #5
    Registered User
    Join Date
    01-09-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8
    mmmm Not sure why the spreadsheet in question has issues - I cant find any other formating. I can get a new spreadsheet to work correctly. I'll dig around and see what I can find.

    BTW - is there any easy way to apply conditional formating to a range of cells e.g A1:A30?

    UPDATED - of course there is. I had the answer in my question....
    Last edited by Geezer34; 01-09-2009 at 11:24 AM.

+ 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