+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Conditional Formation duplicates within range with 1st match differnet color

  1. #1
    Registered User
    Join Date
    06-26-2011
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    28

    Unhappy Conditional Formation duplicates within range with 1st match differnet color

    Hi there,
    I searched for ages and cannot come up with an answer whereby I have a range of cells (D3<M110) and i want to highlight the duplicates but for the first match make the highlight a seperate colour.

    I can do this using two seperate conditions
    a) for one column (D) using;
    =IF(COUNTIF($D:$D,$D1)>1,COUNTIF($D$1:$D1,$D1)=1)
    =IF(COUNTIF($D:$D,$D1)>1,COUNTIF($D$1:$D1,$D1)>1)

    but when I try
    b) for a range (D3>M110) uisng;
    =IF(COUNTIF($D$3:$M$110,D3)>1,COUNTIF($D$3:$M$110,D3)=1)
    =IF(COUNTIF($D$3:$M$110,D3)>1,COUNTIF($D$3:$M$110,D3)>1)

    It highlights all the duplicates, and the condition that should seperate the first match does not work.

    Can anybody help?

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Conditional Formation duplicates within range with 1st match differnet color

    Your second and fourth instance of D3 are missing an absolute reference. I think this is required to do what you are trying to do.

  3. #3
    Registered User
    Join Date
    06-26-2011
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Conditional Formation duplicates within range with 1st match differnet color

    I think I tried this but and although it worked it highlighted the entire row.

    I managed to find another solution that uses the following forula to change the 2nd or any more duplicated

    =IF(COUNTIF($D$3:$M$110,D3)=1,FALSE,NOT(COUNTIF($D$3:D3,D3)=1))

    and I then change the first instance using the normal conditioning (if <> "")

    Many thanks for your efforts

    Regards
    Dave

  4. #4
    Registered User
    Join Date
    06-26-2011
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Conditional Formation duplicates within range with 1st match differnet color

    Sorry, I've actually realised that what I thought was a solution does not work.

    I've also tried Mallcat's recomendations but this also does not work.

    Any other suggestion would be much apprechiated

    Regards
    Dave

+ 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