+ Reply to Thread
Results 1 to 4 of 4

Sorting and deleting

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    Sorting and deleting

    Hi guys,

    I’m having serious issues with a macro and I can’t figure it out : D this is the deal:

    I’ve a worksheet with 12 columns. The last column contains only 1’s. The 5th column contains the ID-numbers that I need and the 10th column contains the criteria. Some of the ID’s are packages and sub package’s. The 1’s column L need to retain but all the 1’s of the sub packages needs to be deleted. For more clarification, I’ve added a worksheet as an example with two sheets (current version and preferred version).

    Summarized:
    If cell contains PP in column J, then --> check column E for ID.
    IF ID contains numbers that are also in the cells below it, then remove the number 1 from cell L (of sub package).

    I hope that you can help me because it’s a hard one.

    Kind regards,

    Flunzy
    Attached Files Attached Files

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Sorting and deleting

    Try:

    Please Login or Register  to view this content.
    It doesn't take care of the formatting which can be placed inside the do loop. Also, I hope the current version sheet is the one you actually want it to look like
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Sorting and deleting

    Thanks a lot Xero. It works like a charm!!!! : )

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Sorting and deleting

    No problem. Glad I could help.

+ 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. Sorting, Comparing and Deleting Rows
    By kwesi2505 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-18-2013, 08:27 AM
  2. [SOLVED] Sorting and deleting rows
    By Lotrking1010 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-09-2012, 09:14 PM
  3. Sorting and deleting
    By achmidt in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-16-2011, 02:19 PM
  4. Deleting columns & sorting by Type
    By rushdenx1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-31-2010, 03:19 PM
  5. sorting and deleting sheets
    By Spike in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2006, 11:20 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