+ Reply to Thread
Results 1 to 4 of 4

Highlighting Duplicate Cells

Hybrid View

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    localhost
    MS-Off Ver
    Excel 2007
    Posts
    5

    Highlighting Duplicate Cells

    Hello.

    I have a column of data in which I'd like to highlight duplicate values by changing font/cell colour. I achieved this by using Conditional Formatting > Highlight Cell Rules > Duplicates Values...

    This does the job, however I would like it to ignore 0 and "" values, effectively not formatting those cells. How do I go about doing the same thing as the built-in function but ignoring zeroes and "" (empty, no text)?

    Thank you very much for your help!

    P.S.: In the attached file I used the 0;-0;;@ trick to hide values equal to 0.
    Attached Files Attached Files
    Last edited by paodelol; 02-11-2013 at 11:15 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Highlighting Duplicate Cells

    Try

    =AND(A1<>"",A1>0,COUNTIF(A:A,A1)>1)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2013
    Posts
    29

    Re: Highlighting Duplicate Cells

    You could add a second additional conditional format using a formula (to apply no format if zero or blank)
    =OR(A1="",A1=0)
    In manage conditional formats, tick STOP IF TRUE for this additional rule.
    Last edited by OfficeCoach; 02-11-2013 at 10:31 AM.

  4. #4
    Registered User
    Join Date
    02-06-2013
    Location
    localhost
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Highlighting Duplicate Cells

    Quote Originally Posted by OfficeCoach View Post
    You could add a second additional conditional format using a formula (to apply no format if zero or blank)
    =OR(A1="",A1=0)
    In manage conditional formats, tick STOP IF TRUE for this additional rule.
    This worked perfectly. Thank you very much to you and Fotis1991!

+ 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