+ Reply to Thread
Results 1 to 6 of 6

Remove rows if duplicate in same column.

  1. #1
    Registered User
    Join Date
    01-11-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    19

    Remove rows if duplicate in same column.

    What I am having trouble with:

    http://imgur.com/a/VdsFX

    Basically, in my workbook I need to find if there is a duplicate in each section that starts with "SectionABC." If there is, delete the corresponding duplicate's row in the bottom section. In the example above you'd delete the rows of the highlighted cells.

    Then, if possible, sort based on SectionABC's Values from Smallest to Largest (in each section individually).

    Help is much appreciated!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Remove rows if duplicate in same column.

    1) Highlight the range of data
    2) Select Data > RemoveDuplicates
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Remove rows if duplicate in same column.

    FYI, if I hadn't already been answering your question, your "bump" would have made your question invisible to me.

    When I'm looking for a new question to answer, I click on the Unanswered Questions link in the menu above. When you bump your own thread, you take your question off that list.... so I wouldn't do that if I were you.

  4. #4
    Registered User
    Join Date
    01-11-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    19

    Re: Remove rows if duplicate in same column.

    Quote Originally Posted by JBeaucaire View Post
    1) Highlight the range of data
    2) Select Data > RemoveDuplicates
    Thanks for the reply. Unfortunately that doesn't do it for two reasons 1) it removes just the duplicate value, but I need to remove the bottom duplicates' rows (duplicate is found if text in bottom is also found in top), and 2) I need it to be automated.

    THANKS FOR THE INFO ON THE BUMP, btw.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Remove rows if duplicate in same column.

    Maybe something like this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Registered User
    Join Date
    01-11-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    19

    Re: Remove rows if duplicate in same column.

    Thanks for the try. It didn't work.

    Somehow I need a function to find the first set of data (below the 1st SectionABC) and the second set of data (below the 2nd SectionABC), find if there is a duplicate between the two columns, and if so delete that duplicate's row out of the 2nd set.

+ 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: 4
    Last Post: 01-08-2016, 09:21 AM
  2. Remove duplicate rows and move the column data to a new column
    By cmray58 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-22-2015, 03:46 PM
  3. [SOLVED] How to sum duplicate values then remove the duplicate rows?
    By terry3218 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-12-2015, 02:38 AM
  4. Remove rows with duplicate values in one column based on value of another column
    By jolleyje in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2013, 06:20 AM
  5. excel macro to remove specific columns and rows + remove duplicate
    By garrywelson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-17-2013, 12:03 PM
  6. remove duplicate rows
    By shahcu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2008, 05:04 AM
  7. [SOLVED] How do I remove Duplicate rows?
    By 85225 in forum Excel General
    Replies: 14
    Last Post: 04-03-2006, 01:30 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