+ Reply to Thread
Results 1 to 4 of 4

Macro or script to delete rows that meet certain criteria

  1. #1
    Registered User
    Join Date
    10-07-2011
    Location
    North Sutton, NH
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question Macro or script to delete rows that meet certain criteria

    Hi! First time poster. Need some help with creating an Excel 2007 script or macro that can be run on a spreadsheet that is generated monthly. It needs to delete rows where the following conditions are met:
    The customer field, part # field, Quantity field and Unit Price field all match, but the Extension field contains a value that is duplicated with a negative value in another row. For example, one row would contain 24,614, but another row contains -24,614, the macro would delete the rows that contain these "cancelling" numbers and also have matching fields as specified above. Please feel free to PM me with questions.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro or script to delete rows that meet certain criteria

    Please attach a workbook so we can help you out easily.

  3. #3
    Registered User
    Join Date
    10-07-2011
    Location
    North Sutton, NH
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Macro or script to delete rows that meet certain criteria

    Here is a sample workbook... Thanks for looking this over!

    Rory
    Attached Files Attached Files

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro or script to delete rows that meet certain criteria

    This is what you need :

    Please Login or Register  to view this content.

+ 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