+ Reply to Thread
Results 1 to 4 of 4

Remove duplicates without removing cells (leave blank)

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    Syracuse, NY
    MS-Off Ver
    Excel 2003
    Posts
    12

    Remove duplicates without removing cells (leave blank)

    I have a spreadsheet with thousands of lines. I need to remove the duplicates in column C without removing the cell position. Need to leave the cell blank if a duplicate is found.

    0PLAN ; CONTRACT ; INDIVIDUAL NAME AND ADDRESS ; AGENT # ; REG % ; ROLL % ; NEW FP ; NEW %
    ---- ; -------- ; ---------- ---- --- ------ ; ------- ; ----- ; ------ ; ---- ; ------
    ; 200906148 ; ; ; ; ; 000853 ; 010
    ; 200906148 ; ; ; ; ; 090649 ; 010
    ; 200906148 ; ; ; ; ; 082661 ; 026
    ; 200906148 ; ; ; ; ; 082548 ; 054
    ; 200909168 ; ; ; ; ; 000853 ; 010
    ; 200909168 ; ; ; ; ; 090649 ; 010
    ; 200909168 ; ; ; ; ; 082661 ; 026
    ; 200909168 ; ; ; ; ; 082548 ; 054
    ; 200914593 ; ; ; ; ; 000853 ; 010
    ; 200914593 ; ; ; ; ; 090649 ; 010
    ; 200914593 ; ; ; ; ; 082661 ; 030
    ; 200914593 ; ; ; ; ; 082548 ; 050
    ; 200914665 ; ; ; ; ; 000853 ; 010
    ; 200914665 ; ; ; ; ; 090649 ; 010
    ; 200914665 ; ; ; ; ; 082661 ; 030
    ; 200914665 ; ; ; ; ; 082548 ; 050
    ; 200917923 ; ; ; ; ; 000853 ; 010
    ; 200917923 ; ; ; ; ; 090649 ; 010
    ; 200917923 ; ; ; ; ; 082661 ; 026
    ; 200917923 ; ; ; ; ; 082548 ; 054


    I need it to look like this.


    0PLAN ; CONTRACT ; INDIVIDUAL NAME AND ADDRESS ; AGENT # ; REG % ; ROLL % ; NEW FP ; NEW %
    ---- ; -------- ; ---------- ---- --- ------ ; ------- ; ----- ; ------ ; ---- ; ------
    ; 200906148 ; ; ; ; ; 000853 ; 010
    ; ; ; ; ; ; 090649 ; 010
    ; ; ; ; ; ; 082661 ; 026
    ; ; ; ; ; ; 082548 ; 054
    ; 200909168 ; ; ; ; ; 000853 ; 010
    ; ; ; ; ; ; 090649 ; 010
    ; ; ; ; ; ; 082661 ; 026
    ; ; ; ; ; ; 082548 ; 054
    ; 200914593 ; ; ; ; ; 000853 ; 010
    ; ; ; ; ; ; 090649 ; 010
    ; ; ; ; ; ; 082661 ; 030
    ; ; ; ; ; ; 082548 ; 050
    ; 200914665 ; ; ; ; ; 000853 ; 010
    ; ; ; ; ; ; 090649 ; 010
    ; ; ; ; ; ; 082661 ; 030
    ; ; ; ; ; ; 082548 ; 050
    ; 200917923 ; ; ; ; ; 000853 ; 010
    ; ; ; ; ; ; 090649 ; 010
    ; ; ; ; ; ; 082661 ; 026
    ; ; ; ; ; ; 082548 ; 054

  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: Remove duplicates without removing cells (leave blank)

    just use another column put =if(countif($a$1:a1)=1,a1,"") fill down then copy results and paste back special values over the original then delete the formulas
    "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
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: Remove duplicates without removing cells (leave blank)

    Insert a new blank column C with the same header (CONTRACT) as the old column C (now column D)

    Put this formula in cell C3: =IF(D3=D2,"",D3)
    Copy the formula down
    Mark the entire column C and Copy - Paste special - Values
    Then delete column D

  4. #4
    Registered User
    Join Date
    04-15-2013
    Location
    Syracuse, NY
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Remove duplicates without removing cells (leave blank)

    Thanks Rambo. This worked great. This saves me a lot of time. My Mom was born is Sweden. Have a great day. Bobby'O

+ 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