+ 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, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    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
    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

  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
    Office 365
    Posts
    2,108

    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, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    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, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    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, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    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)

Similar Threads

  1. [SOLVED] Select and Delete Multiple Rows based on Cell contents
    By Vanth_2013 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-13-2018, 02:35 PM
  2. Select Specific Rows Dependent on Criteria (Not Auto-Filter)
    By xybadog in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2016, 08:51 AM
  3. [SOLVED] Multiple criteria in filter mode to delete
    By puuts in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2015, 12:34 PM
  4. delete rows based on a filter criteria - VBA
    By acs013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2009, 11:51 PM
  5. Replies: 1
    Last Post: 04-23-2007, 04:23 PM
  6. Filter/Select multiple rows
    By a_moron in forum Excel General
    Replies: 5
    Last Post: 01-20-2006, 10:41 AM
  7. Auto Filter Delete Rows by Criteria Doesn't Work Range To Complicated
    By robertjtucker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2005, 01:05 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