+ Reply to Thread
Results 1 to 3 of 3

Deleting rows

  1. #1
    Registered User
    Join Date
    02-09-2006
    Posts
    51

    Deleting rows

    I can not come up with something for this. I have books in column C and years in column H. I need to delete all books with 2010-2 and 2010-3 and all rows that have years pertaining to that book. I just can not figure it out.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Use the AUTOFILTER to identify all rows to delete

    Put this formula in J7 and then copy down to J6203:
    =IF(A7="",J6,J6+1)

    Put this in K6:
    Key

    Put this in K7 then copy down to K6203:
    =IF(OR(H7={"2010-2","2010-3"},AND(J7=J6,K6="bad")),"bad","Good")

    Highlight K6:K6203

    Select Data > Filter > Autfilter

    Filter K6 for "Bad"

    Highlight all visible rows and delete them.

    Data > Filter > Autofilter to turn it off and you're left with the rest.
    Last edited by JBeaucaire; 05-11-2010 at 10:29 PM. Reason: Use the AUTOFILTER to identify all rows to delete
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-09-2006
    Posts
    51

    Re: Use the AUTOFILTER to identify all rows to delete

    I could not get it to run, but I did come up with this "FINALLY"
    Please Login or Register  to view this content.
    Last edited by PBANKS; 05-12-2010 at 03:59 PM. Reason: Solved

+ 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