+ Reply to Thread
Results 1 to 4 of 4

Removing duplicate rows depending on range of columns

  1. #1
    Registered User
    Join Date
    12-09-2016
    Location
    Here
    MS-Off Ver
    2013
    Posts
    2

    Removing duplicate rows depending on range of columns

    Hi,

    I have an Excel problem that I need help with! I have searched and tried different things but to no avail.

    I have a spreadsheet that contains a number of duplicate rows, that have slight differences in a range of column values. I would like to remove the duplicates, which will be the rows where this column range is blank, keeping the row where data exists in the column ranges.

    Best explained with an example:


    A B C D E F G
    1
    1 x y z a b c
    2
    2 d e f g h i
    3
    3 j k l m n o


    Columsn A-G are the table, with column A containing a unique code. There are duplicates, that I wish to remove. Where data exists in columns B-G I want to keep this row, but remove the duplicate row that has nothing in these columns. So in the example above the first and second rows (both '1') are duplicates and I want to remove the first one.

    Does anyone know if this is possible, and if so how it is done? Ideally I would like to achieve this through a function rather than macros, as I don't know VBA and want to understand how the formula may work. I have been looking at nested IFs, ANDs and COUNTIFs but so far no joy. Any help is much appreciated!

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Removing duplicate rows depending on range of columns

    Hi
    Formulas don't remove rows. We can mark them as duplicate
    So if data in A1:G6, use in H1 and copy down the following array formula (array formula must be enter with CTRL+SHIFT+ENTER instead only ENTER)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-09-2016
    Location
    Here
    MS-Off Ver
    2013
    Posts
    2

    Re: Removing duplicate rows depending on range of columns

    Hi Jose,

    That's perfect - thanks for your (very quick) help!

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Removing duplicate rows depending on range of columns

    You are welcome and thanks for the feedback.

    Do not forget to mark this thread as SOLVED.

+ 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. [SOLVED] Loop through a range and delete duplicate rows. (Check data in two columns)
    By spikedemike in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2015, 07:44 AM
  2. [SOLVED] Removing rows that contain duplicate information in 3 columns
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-15-2015, 02:33 PM
  3. Removing duplicate rows using only a few columns.
    By HorribleZane13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2015, 09:34 AM
  4. [SOLVED] Removing duplicate columns
    By Rec1ne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2013, 06:04 PM
  5. Removing Duplicate Rows based on 2 columns
    By metalpoker in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 10-14-2011, 05:28 AM
  6. Duplicate a Box depending on how many rows another tab has.
    By donnydorko in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2009, 04:30 PM
  7. Replies: 1
    Last Post: 04-01-2005, 07:06 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