+ Reply to Thread
Results 1 to 6 of 6

removing duplicates

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    51

    removing duplicates

    Hi there,

    basically I have a load of data and I want to remove the duplicates. what I have done is concatenated the data into one cell which are all in column E.so what I want is a code that goes down column E and any time it hits a duplicate I want it to colour the cell red. i would be grateful if somone could help me on the code.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: removing duplicates

    Why not use the built in function with Excel 2007?

    Home tab >> Styles >> Conditional Formatting >> Highlight Cells Rules >> Duplicate Values
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    06-29-2011
    Location
    MUMBAI
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    85

    Re: removing duplicates

    could u upload a sample file,which contains data similar to that.

  4. #4
    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: removing duplicates

    Hi

    In Conditional Formatting rules(Range(E1:?), put this formula and choose red color.

    =COUNTIF($D:$D,$D1)>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.

  5. #5
    Registered User
    Join Date
    07-05-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: removing duplicates

    I know how to do it in excel but I really what to do it in vba as It's for a project I have been doing at work and I've been using vba for it.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: removing duplicates

    When you say remove the duplicates, do you want to remove them completely or leave one instance of the duplicate?
    Last edited by jeffreybrown; 07-20-2012 at 02:30 PM. Reason: spelling

+ 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