+ Reply to Thread
Results 1 to 3 of 3

Remove Duplicates from One Field in Excel Spreadsheet & Delete that Entire Row

Hybrid View

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Chiang Mai, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    34

    Remove Duplicates from One Field in Excel Spreadsheet & Delete that Entire Row

    Hi,
    I have a data set of villages. There are more than one village per village tract, but I want the data set to contain only 1 village per village tract. It doesn't matter what village in the village tract I keep. I just want to reduce the data set by eliminating multiple villages per village tract.

    I know I can use Vlookup to remove duplicates from one column, but I would like to also remove all the records associated with the duplicate village tracts so that I end up with a smaller data set that has one village per village tract.

    The field of village tracts = vt.

    Any guidance would be really appreciated as I am trying to do this manually and it's taking way to long. There must be an easier way.

    See attached.

    THanks,
    Lyndy
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Remove Duplicates from One Field in Excel Spreadsheet & Delete that Entire Row

    Hi Lyndy,

    Please try these options or you can use Pivot table to generate Unique list.

    Note: Ctrl+Shift+Enter is required for both options

    Option1:
    =INDEX($F$2:$F$831,MATCH(0,COUNTIFS($L$1:L1,$F$2:$F$831),0))

    Option2:
    =INDEX($F$2:$F$831,SMALL(IF(FREQUENCY(IF($F$2:$F$831<>"",MATCH($F$2:$F$831,$F$2:$F$831,0)),ROW($F$2:$F$831)-ROW($F$2)+1),ROW($F$2:$F$831)-ROW($F$2)+1),ROWS($M$2:M2)))
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Registered User
    Join Date
    05-16-2013
    Location
    Chiang Mai, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    34

    Smile Re: Remove Duplicates from One Field in Excel Spreadsheet & Delete that Entire Row

    Majorly Awesome! Thanks!

+ 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. Export a field from text file to excel and remove duplicates
    By premkrishnan in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-08-2011, 05:51 AM
  2. remove entire row based on duplicates from single column
    By mikemeadeuk in forum Excel General
    Replies: 2
    Last Post: 10-15-2011, 02:57 PM
  3. Copy Entire Row into New Sheet, remove duplicates
    By aeh7b in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-17-2011, 05:46 PM
  4. Trying to run a macro to sort and remove duplicates from entire sheet
    By sgmiller in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-31-2009, 10:24 AM
  5. Excel 2007 : Remove duplicates from 2nd spreadsheet
    By rikpotts in forum Excel General
    Replies: 4
    Last Post: 01-03-2009, 12:08 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