+ Reply to Thread
Results 1 to 5 of 5

Delete records/rows in column 2 from column 1?

  1. #1
    Registered User
    Join Date
    08-09-2010
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 2008 for Mac
    Posts
    3

    Delete records/rows in column 2 from column 1?

    Is there an easy way to delete the matching records/rows in column 2 from column 1 (or visa versa)?

    Example.....

    Have this in spreadsheet:

    C1 C2

    1 1
    2 2
    3
    4
    5
    6

    Would like excel to delete all of the fields in the rows in Column 2 from Column 1, thus making Column 1 look like this:

    C1

    3
    4
    5
    6

    Thank you so much for your time. Have a great day.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Delete records/rows in column 2 from column 1?

    Hi,

    One non VBA approach would be to use a third helper column to test for identical values in cols. 1 & 2, then filter on the helper column and delete the filtered rows.

    i.e. with
    Please Login or Register  to view this content.
    copy C1 down and filter for the word 'Delete', select all filtered rows and delete them. Then finally turn off the filter.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-09-2010
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 2008 for Mac
    Posts
    3

    Re: Delete records/rows in column 2 from column 1?

    That is awesome. That gives me exactly what I need. Thank you so much!

  4. #4
    Registered User
    Join Date
    08-09-2010
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 2008 for Mac
    Posts
    3

    Re: Delete records/rows in column 2 from column 1?

    Is there a way to do this if the columns do not match up?

    Example:

    A B C
    1 6 Keep
    2 1 Delete
    3 7 Keep
    4 8 Keep
    5 9 Keep

    Thank you so much for your time.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Delete records/rows in column 2 from column 1?

    Hi,

    Yes, just use
    Please Login or Register  to view this content.
    change the $A:$5 range to suit your data.

    Regards

+ 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