+ Reply to Thread
Results 1 to 14 of 14

multiple deletions

  1. #1
    Registered User
    Join Date
    01-18-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    27

    multiple deletions

    is there a way to:

    Search & remove duplicates in one column and remove the corresponding cells in the row. For example in the attached sheet if e3 is a duplicate in can I automatically delete a3, b3, c3, d3 & e3
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: multiple deletions

    Click on the row identifier (the 3 on the left hand edge of the screen) to highlight the complete row, then Edit | Delete Row.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-18-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: multiple deletions

    is there away to automatically delete the entire row when I click on remove duplicates for column e?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: multiple deletions

    I don't remember there being a Remove Duplicates feature in XL 2003 (which your profile indicates you are using).

    Pete

  5. #5
    Registered User
    Join Date
    01-18-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: multiple deletions

    I just installed MS office 2010 . . . I will update my profile. Can I do it using the 2010 version?

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: multiple deletions

    I used this macro on your data.

    Please Login or Register  to view this content.
    See the attached file.

    I made it in the excel 2007 enviorment, so see if it also works on the excel 2003 version.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Registered User
    Join Date
    01-18-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: multiple deletions

    how do I run the macro?

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: multiple deletions

    Excel 2007

    Choose on the lint developer => macro

    Then you get an pop up where you find:

    Delete_duplicated_values (this is the name of the macro).

    Choose run

    Duplicated values in column A will be deleted.

    Now you have excel 2007 so you can use remove duplicates:

    Excel 2007

    Data => remove duplicated

  9. #9
    Registered User
    Join Date
    01-18-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: multiple deletions

    if I copy and paste data to the file you sent me, how would I get to the lint developer

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: multiple deletions

    1) With ALT + F8 you also get to the macro's.

    2) but already said, you can use excel functionality => remove duplicates

  11. #11
    Registered User
    Join Date
    01-18-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: multiple deletions

    if I use remove duplicate and click on row e won't it only remove the duplicates in row E. But keep the cells in the other columns, thus the rows would be UN-alligned.

    If I click all of the rows and there is a duplication in a column other than row e would it delete that duplicate and un-allign the rows on the sheet?

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: multiple deletions

    You have to select the whole worksheet and then choose for remove duplicates.

    Then you can select on column (e.g. A) to remove duplicates.

  13. #13
    Registered User
    Join Date
    01-18-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: multiple deletions

    if I remove the duplicates in one column (for example column A) does it delete the whole row or shift the cells in column A thus making the remainder of the columns not alligned with column a?

    For example if they were 30 rows and 5 columns

    If a5 & a10 are duplicates and are removed is the data in row 6 still alligned from all of the columns? or since A would be shifted up have all the rows changed and are out of alignment?

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: multiple deletions

    Please Login or Register  to view this content.
    What does this text mean?

    Please show the desired result in your workbook.

+ 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