+ Reply to Thread
Results 1 to 9 of 9

Select and Delete rows without using filter using multiple criteria

  1. #1
    Registered User
    Join Date
    12-18-2018
    Location
    INDIA
    MS-Off Ver
    OFFICE 2016
    Posts
    4

    Lightbulb Select and Delete rows without using filter using multiple criteria

    I wanna select rows and delete them without using filter.
    The reason is that the Model No. is common but customer code is different and sum of required qty. is also different.
    So i want to keep only those customer code rows which sum is greater than other customer code rows.

    I have a very large data so I can't do it using filter as I have also to check the sum of required quantity customer code wise.

    So please help.
    Attached Files Attached Files
    Last edited by sunil10007; 11-02-2019 at 12:11 AM. Reason: ATTACHMENT REVISED

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    16,220

    Re: Select and Delete rows without using filter using multiple criteria

    Build a Pivot Table as shown in Sheet1.

    Customer Code, Model No and Prod Month are rows and Required Quantity is shown as Value.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-18-2018
    Location
    INDIA
    MS-Off Ver
    OFFICE 2016
    Posts
    4

    Re: Select and Delete rows without using filter using multiple criteria

    Thanks Alan

    But this is not my requirement, I wanna select yellow highlighted rows and delete them without using filter.
    The reason is that the Model No. is common but customer code is different and sum of required qty. is also different.
    So i want to keep only those customer code rows which sum is greater than other customer code rows.

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    1,794

    Re: Select and Delete rows without using filter using multiple criteria

    I wanna select yellow highlighted rows and delete them without using filter
    Filter by color and delete them
    Click the * to say thanks.

  5. #5
    Registered User
    Join Date
    12-18-2018
    Location
    INDIA
    MS-Off Ver
    OFFICE 2016
    Posts
    4

    Re: Select and Delete rows without using filter using multiple criteria

    these rows have been highlighted by me to make you understand not by software.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    16,220

    Re: Select and Delete rows without using filter using multiple criteria

    Tell us what the criteria is for deleting the rows. It is not obvious from your sheet or explanation. If not based upon color, what is the basis of coloring. What is the purpose of columns I:L in your example? Very confusing. What may be clear in your mind is not obvious to us.

  7. #7
    Registered User
    Join Date
    12-18-2018
    Location
    INDIA
    MS-Off Ver
    OFFICE 2016
    Posts
    4

    Re: Select and Delete rows without using filter using multiple criteria

    See revised sheet attached in main post. You'll not get confused now. I hope.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    16,220

    Re: Select and Delete rows without using filter using multiple criteria

    Using Power Query/Get and Transform here is the Mcode for your example.

    Please Login or Register  to view this content.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    16,220

    Re: Select and Delete rows without using filter using multiple criteria

    crossposted: https://www.mrexcel.com/forum/excel-...ng-filter.html

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

+ 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