+ Reply to Thread
Results 1 to 3 of 3

Loop Through Sheet and Delete Rows

  1. #1
    Registered User
    Join Date
    05-23-2011
    Location
    KCMO
    MS-Off Ver
    Excel 2007
    Posts
    8

    Loop Through Sheet and Delete Rows

    Hi,

    Our MRP system generates a report that is very poorly formatted. I am really after two key points of data that repeat themselves throughout the printout. I am looking for the item and the Economic Order Quantity. I would like to write a subroutine which looks through this list and deletes all lines except those that contain the key words "item" and "Economic Order Quantity". A snapshot of the report is as follows:

    Item : 3010-0000-000-02 test
    Planner : GK GK Disponent FS3
    Order Policy : Anonymous
    Order System : Planned
    Order Method : Lot for Lot
    JIT Item : No
    Planned by SCS Planner : No
    Order Quantity Multiple of : 1.0000
    Minimum Order Quantity : 1.0000
    Maximum Order Quantity : 999999.0000
    Fixed Order Quantity : 1.0000
    Economic Order Quantity : 1.0000
    Re-Order Point : 0.0000
    Maximum Inventory : 999999.0000
    Service Level : 0
    Safety Stock : 0.0000
    Order Interval : 0
    Safety Time : 2
    First Allowed Order Date :
    Order Costs : 0.00 [USD]
    Seas. Pattern for Safety Stock:
    Season Pattern for Demand :
    Period : 1 Month
    Update Inventory/Order Data : No


    Item : 3010-0202-100-00 18750X1050 07-390/24
    Planner : GK GK Disponent FS3
    Order Policy : Anonymous
    Order System : Planned
    Order Method : Lot for Lot
    JIT Item : No
    Planned by SCS Planner : No
    Order Quantity Multiple of : 1.0000
    Minimum Order Quantity : 1.0000
    Maximum Order Quantity : 999999.0000
    Fixed Order Quantity : 1.0000
    Economic Order Quantity : 3.0000
    Re-Order Point : 0.0000
    Maximum Inventory : 0.0000
    Service Level : 0
    Safety Stock : 0.0000
    Order Interval : 0
    Safety Time : 2
    First Allowed Order Date :
    Order Costs : 0.00 [USD]
    Seas. Pattern for Safety Stock:
    Season Pattern for Demand :
    Period : 1 Month
    Update Inventory/Order Data : No


    The data is all contained in column "A"

    Thanks in advance for any help you can provide.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Loop Through Sheet and Delete Rows

    Give this a try

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    05-23-2011
    Location
    KCMO
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Loop Through Sheet and Delete Rows

    Thanks, it worked great!

+ 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