+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting highlight duplicate values IF cell doesn't start with "XX"

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    Worcester
    MS-Off Ver
    Excel 2010
    Posts
    16

    Conditional Formatting highlight duplicate values IF cell doesn't start with "XX"

    I am trying to highlight duplicate values in a column IF the cell contents do not start with the letters "CB" (As there are duplicates which I dont want to highlight)

    Can anyone enlighten me to a formula which will allow this?

    e.g.
    XA123 - Highlight as duplicate
    CB123 - Do not highlight as starts with "CB" even though a duplicate
    XB125
    XA123 - Hghlight as duplicate
    CB123 - Do not highlight as starts with "CB" even though a duplicate

    Thanks for your help.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Conditional Formatting highlight duplicate values IF cell doesn't start with "XX"

    Hello
    As an example for the range A1:A18, apply the following Conditional Format formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Does this do as required?

    DBY

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    Worcester
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Conditional Formatting highlight duplicate values IF cell doesn't start with "XX"

    Many thanks this does indeed achive what I wanted.

    I modified it slightly to include an OR statement as it transpired there were another set of items as well as the 'CB' ones, so it became:

    =AND(COUNTIF($B$1:$B$1000,$B1)>1,OR(COUNTIF($B1,"CB*")=0),(COUNTIF($B1,"AP*")=0),(COUNTIF($B1,"LT*")=0))

+ 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: 11
    Last Post: 05-29-2014, 11:30 AM
  2. [SOLVED] Conditional Formatting - Highlight Cells Rules "text that contains"
    By ggentry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2013, 07:53 AM
  3. Replies: 2
    Last Post: 08-17-2012, 05:10 AM
  4. Replies: 2
    Last Post: 06-11-2012, 06:08 PM
  5. Input info if cell doesn't start with "G"
    By ianwt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2006, 03:41 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