+ Reply to Thread
Results 1 to 4 of 4

Conditional Format for cells containing the same word (but in different phrases)

  1. #1
    Registered User
    Join Date
    04-09-2007
    Posts
    25

    Conditional Format for cells containing the same word (but in different phrases)

    Hi,

    trying to figure out how to apply a Conditional Format (or another way of highlighting) for cells, that contain the same word, but in different phrases - e.g. "Multitarget" and "Fixed multitarget".

    Can this be done?

    (The normal Cond. formatting formula I found for similar cells is like this: "=IF(COUNTIF(E4:M4, E4)>1,TRUE,FALSE)", but obviously does not work with the above in mind ).

    Joe

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    How about a condition like this:
    =(COUNTIF(A1,"=*multitarget*")=1)

  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Short answer

    Try this: =COUNTIF(E4:M4,"*"&E4&"*")>1 --> True or False
    //Ola

  4. #4
    Registered User
    Join Date
    04-09-2007
    Posts
    25
    Quote Originally Posted by olasa
    Try this: =COUNTIF(E4:M4,"*"&E4&"*")>1 --> True or False
    //Ola
    Olasa (and mikerickson),

    Thx! Needed to modify a little bit so that the range remains in every Cell the same (when I copied this to the Conditional Format in E4 and SHIFTed+R up to M4, the range of course changed in every cell, so had to manually change each to E4:M4 for it to work correctly), but now it is functioning splendid!

    Joe

+ 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