+ Reply to Thread
Results 1 to 3 of 3

Finding Duplicates in Excel sheet

  1. #1
    Registered User
    Join Date
    03-16-2009
    Location
    Muscat, Oman
    MS-Off Ver
    Excel 2003
    Posts
    1

    Finding Duplicates in Excel sheet

    I have a sheet with hundreds of 4 digit numbers in as many as 20 columns in it. Sometimes we make mistakes and type the same number in different columns. That should not happen because these are Employee Numbers in a company and this sheet is the attendance sheet for that particular day. How can I find if I have made double entries of the same number by mistake?
    Last edited by VBA Noob; 03-16-2009 at 03:22 PM.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Finding Duplicates in Excel sheet

    One method is to use conditional formatting to highlight any entries that have already been entered.

    Steps:
    1. Highlight the entire range that you want to query.
    2. Go to FORMAT-CONDITIONAL FORMAT
    3. Select the "Formula Is" from the dropdown box
    4. Enter the following formula (note: the cell reference will change based on the FIRST cell in your range): =COUNTIF($B$4:B4,B4)>1
    5. Select the button format and choose a color.

    Report back if that helps.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Finding Duplicates in Excel sheet

    Hi and welcome to the board.
    Suppose your range is A1:d50
    Select A1
    Select menu Format - Conditional formatting
    Change the first drop down box to "Formula is"
    As formula enter =countif($a$1:$d$50,a1)>1
    Select tour formatting -OK
    Select paint brush
    Paint your range
    All duplicates are now highlighted with the format you've chosen

+ 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