+ Reply to Thread
Results 1 to 15 of 15

Conditional Formatting to highlight duplicates question

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    10

    Question Conditional Formatting to highlight duplicates question

    I have a spreadsheet where certain individuals have more than one record.
    Is there a way of highlighting the entire row for all records that occur more than once?

    For example, a person may have had several different addresses, so will occur with several records on my spreadsheet.
    Everyone has a unique reference number.
    So what I would like to do is indicate all rows having more than one instance of a unique reference number.

    Any help gratefully received!

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Conditional Formatting to highlight duplicates question

    You may use conditional formatting with this formula

    Suppose list is A1 to a10

    Please Login or Register  to view this content.
    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  3. #3
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Conditional Formatting to highlight duplicates question

    Thanks for your response but I don't think that will solve the problem.

    My spreadsheet has multiple columns - I want to highlight the entire row for all instances of records having more than one instance of a unique unique reference number.
    Am I correct in thinking the formula will need to refer to the column containing the unique reference number?
    Last edited by moretvicar; 05-31-2015 at 05:15 AM.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,646

    Re: Conditional Formatting to highlight duplicates question

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Conditional Formatting to highlight duplicates question

    Thank you for your clear instructions - please see attched
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Conditional Formatting to highlight duplicates question

    Still you can use this
    select all the data use this:

    Please Login or Register  to view this content.
    Also your 32028 & 17516 refer to more than one person

    You may copy this formatting by format painter tool

    Regards
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Conditional Formatting to highlight duplicates question

    Many thanks for your reply.
    Sorry about errors.

    When i format paint your example into my spreadsheet (which has columns extending to "Y") the highlighting is random. I wish to highlight the entire row where a "URN" in column A exists more than once.
    Sorry if I am missing something simple here - my excel knowledge is pretty basic!
    I have attached another example.
    Attached Files Attached Files
    Last edited by moretvicar; 05-31-2015 at 07:34 AM.

  8. #8
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Conditional Formatting to highlight duplicates question

    Select all the range and then copy the above formula in conditional formatting.
    Conditional formatting + manage rules+ .....

    It should work.

    Regards

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,646

    Re: Conditional Formatting to highlight duplicates question

    Does the attached help ?

    The $ sign in the $a2 part is the trick
    Attached Files Attached Files

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting to highlight duplicates question

    Quote Originally Posted by mahju View Post
    =IF(COUNTIF($A$2:A2,A2)>1,TRUE,FALSE)
    You can reduce that to:

    =COUNTIF($A$2:A2,A2)>1
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  11. #11
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Conditional Formatting to highlight duplicates question

    Marvelous - works a treat - thank you so much!

  12. #12
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Conditional Formatting to highlight duplicates question

    DAMN DAMN DAMN!

    It still doesn't work whichever of the formulas above I use
    I have attached a spreadsheet more like the one I am using - when I apply the conditional formatting, it comes out in a blocky pattern, that is it doesn't highlight all the cells in the record, and for that matter, it doesn't seem to be picking up all the records it should
    Attached Files Attached Files

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting to highlight duplicates question

    Try this...

    First, delete all the formatting rules you have tried that failed.

    Select the *entire* range A2:Y62 starting from cell A2.
    Cell A2 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =COUNTIF($A$2:$A$62,$A2)>1

    Click the Format button
    Select the desired style(s)
    OK out

  14. #14
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Conditional Formatting to highlight duplicates question

    That has solved it - it was the range reference in the formula I was getting wrong.

    THANK YOU!

  15. #15
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting to highlight duplicates question

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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: 3
    Last Post: 05-31-2013, 08:03 AM
  2. Replies: 2
    Last Post: 08-17-2012, 05:10 AM
  3. Macro of conditional formating, Highlight all duplicates + its unique
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2011, 05:29 AM
  4. Using conditional formatting to highlight multiple duplicates
    By JONNY981 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-28-2010, 03:24 AM
  5. count duplicates conditional formating highlight
    By g48dd in forum Excel General
    Replies: 3
    Last Post: 12-17-2009, 10:07 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