+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting - formula to highlight repeated cells

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    Colchester, England
    MS-Off Ver
    Excel 2007
    Posts
    21

    Conditional formatting - formula to highlight repeated cells

    Hi,

    I'm sure this has been asked before.

    Basically, I'd like CF that highlights cells with a value that has already appeared in an earlier cell in the column. For example, if C1, C4 and C5 all had the same value, C1 would not be highlighted, but C4 and C5 would.

    Thanks in advance.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional formatting - formula to highlight repeated cells

    formula option of
    =COUNTIF($C$1:$C1,$C1)>1
    applied to c1 copied down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Conditional formatting - formula to highlight repeated cells

    You could set a CF rule to any and all cells below C1, that way C1 would be unaffected, but depending on your exact situation that might not work out for you.

  4. #4
    Registered User
    Join Date
    06-04-2013
    Location
    Colchester, England
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Conditional formatting - formula to highlight repeated cells

    I should say also that this should be for all value with repetition, so in the 'C' example, C2 and C3 could have a different repetition, and again I only want C3 highlighted.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional formatting - formula to highlight repeated cells

    this is what i suggested
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-04-2013
    Location
    Colchester, England
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Conditional formatting - formula to highlight repeated cells

    Thank you

+ 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: 5
    Last Post: 11-08-2013, 05:57 AM
  2. Replies: 5
    Last Post: 09-24-2012, 05:14 PM
  3. Conditional Formatting - Highlight Cells
    By jfs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2011, 01:14 PM
  4. Highlight cells with VBA or Conditional Formatting?
    By starcraftbud in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2010, 03:54 PM
  5. Replies: 0
    Last Post: 03-15-2005, 07:40 AM

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