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.
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.
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!)
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks