+ Reply to Thread
Results 1 to 2 of 2

Deleting Entire Rows Based Off of Multiple Criteria

  1. #1
    Registered User
    Join Date
    05-05-2016
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    4

    Deleting Entire Rows Based Off of Multiple Criteria

    I have a spreadsheet with column headers: Order Number, Step, Start Date, End Date. It is populated with over 10,000 rows of data. Each row is a different step which means multiple rows can contain information on the same order.

    For example, if my data concerned making ice cream cones, an order for a plain vanilla ice cream cone would contain multiple steps: one for taking the order, one for walking to the freezer, one for scooping the vanilla ice cream, one for putting it in a cone, and one for handing it to the customer. That is 5 rows that share the same order number.

    If I prepared a chocolate dipped vanilla cone, the steps would be identical to ordering a plain vanilla ice cream cone except there would be an extra step for dipping the cone in chocolate. The order number for the chocolate dipped cone would also be different.

    If I wanted to delete all rows for every chocolate dipped cone in this document, how could I do that?

    I can't just use a filter to find all rows containing "dip cone in chocolate" because that would leave the other steps associated with those orders in the document. If I just deleted the rows that contain the chocolate dipping step, it would then distort my data to look like I had many more plain vanilla cone orders. Basically I need a macro that can gather all order numbers that contain a chocolate dipping step and then delete all the rows associated with that order.

    I apologize for the corny ice cream example but it's the easiest way to describe the problem with my data.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Deleting Entire Rows Based Off of Multiple Criteria

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    To add a file to a post

+ 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. Extracting entire row to new sheet based on criteria, and then deleting empty row
    By phase321 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2013, 05:01 PM
  2. [SOLVED] Deleting rows based on multiple criteria
    By weldo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-02-2012, 08:02 AM
  3. [SOLVED] Sum multiple entire rows based on criteria, array formula challenge!
    By ppffffpp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2012, 09:42 PM
  4. Deleting Entire Row Based on Criteria in single cell
    By CBG05QB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2011, 08:40 AM
  5. Deleting rows based on max value in entire row
    By form in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2010, 09:27 AM
  6. VBA for deleting rows not based on criteria
    By reggie1000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2009, 10:20 AM
  7. Deleting Rows based on criteria...
    By neilcarden in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2007, 05:23 PM
  8. Deleting blanks rows based on multiple criteria
    By Pedros in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2006, 12:44 AM

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