+ Reply to Thread
Results 1 to 2 of 2

Deleting few columns based on a criteria

  1. #1
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Deleting few columns based on a criteria

    Dear All,

    Good Evening!!!

    My below requirement might confuse you, so request you to please go through the attached excel Where I have done changes for the first brand name in the before sheet & after sheet

    Its just about deleting content/rows when my requirement meets criteria.

    I prepared a format in such a way that one brand has several models for calculating their order, opening stock, Quantity received etc

    I want to delete entire row for every brand where Remarks has Quantity received as per order & Ordered Quantity, Opening Stock, Quantity Received & Quantity to be received = zero

    I want rows to remain after deleting = max number of rows it occupied under the item shown below

    ex: for KEDBROOKE Brand, I've max number of items are 2, So I want to delete next entire rows with remaining 2 rows without deleting

    I just also want to delete content (not rows) in the rows that are remain after deleting where where Remarks has Quantity received as per order & Ordered Quantity, Opening Stock, Quantity Received & Quantity to be received = zero

    ex: for KEDBROOKE Brand, I've max number of items are 2, So if I have Remarks has Quantity received as per order & Ordered Quantity, Opening Stock, Quantity Received & Quantity to be received = zero with in these 2 rows

    DOWNROD/SHACKLE:
    CANOPY
    ROTOR:
    SHAFT:
    CAPACITOR:/MAKE
    STATOR:
    Lamination
    BLADE:
    MOTOR BOX:
    THERMOCOLE TRAY:
    STAY CAP / CENTRE PAD:
    BEARING
    SHOW CAP/ RING
    MASTER CARTON:

    I hope I didnt confuse you & Request you to please help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Deleting few columns based on a criteria

    Hope this helps!

    the Macro "Delete_Erase_Rows" should perform the desired action on the "before" worksheet.

    The macro code is as follows:
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. [SOLVED] Deleting rows based on criteria.
    By nighttrainrex in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2013, 12:48 AM
  2. [SOLVED] Deleting rows based on two criteria
    By safesearcher in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-31-2013, 12:54 PM
  3. [SOLVED] Deleting Duplicates Based on Multiple Criteria from Multiple Columns
    By Franklic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2012, 05:31 PM
  4. Deleting Columns based on criteria in two rows
    By qdavhen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2011, 03:14 AM
  5. Most efficient way of deleting row based on criteria
    By WasWodge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2011, 09:31 PM
  6. deleting rows based on criteria
    By scubadude47 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-14-2008, 01:53 PM
  7. Deleting rows based on criteria
    By MJK in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-16-2008, 08:45 AM
  8. Deleting Rows based on criteria...
    By neilcarden in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2007, 05:23 PM

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