+ Reply to Thread
Results 1 to 5 of 5

Deleting multiple rows based on cell values

  1. #1
    Registered User
    Join Date
    10-07-2018
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    12

    Deleting multiple rows based on cell values

    I need a macro that deletes all rows that contain values that start with the number 009.
    I work in distribution and every parcel we have has a unique parcel number. However, when a parcel is sent out for delivery for a second time, the system changes it's number to a new one that begins with 009 e.g. 00912004867573055.

    As these parcels have already gone out for delivery once, I do not need their parcel numbers in the spreadsheet. I had a macro that finds all values that contain 009, but this deletes all cells that contain '009' and this sequence of numbers sometimes appears within parcel numbers that I do not want to delete. I need a macro that will find and delete all rows containing a parcel number that start with 009.


    Any thoughts?

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Deleting multiple rows based on cell values

    Hi & welcome to the board
    How about
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Deleting multiple rows based on cell values

    Modified version to account for no rows to be deleted
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-07-2018
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Deleting multiple rows based on cell values

    It worked! Thank you so much. I'm sure that was quite easy for experts but I'm still quite new to Excel. Thanks again :D

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Deleting multiple rows based on cell values

    Glad to help & thanks for the feedback

+ 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. Copying rows based on multiple values in a cell
    By mruetz in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-21-2018, 01:13 PM
  2. [SOLVED] Deleting Rows Based on Values VBA
    By bambino86 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-24-2017, 12:06 PM
  3. deleting rows based on values (non-vba)
    By ammartino44 in forum Excel General
    Replies: 1
    Last Post: 09-05-2014, 02:17 PM
  4. [SOLVED] Deleting Multiple Rows based on Cell Content
    By pdreyest in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-23-2012, 12:58 PM
  5. copy rows based on multiple cell values
    By stevenwhite1968 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2011, 07:18 AM
  6. Replies: 1
    Last Post: 08-17-2008, 01:44 PM
  7. deleting rows using vba, based on values in a cell
    By kckar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2007, 01:54 AM

Tags for this Thread

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