The method exploits a feature of Advanced Filters and eliminates the need to
create helper columns and copy formulas through hundreds, or thousands, of
cells.
Here's the way the criteria section works:
A1: MyCriteria
A2: =ISEVEN(ROW(A10))
Since we are using an formulaic criteria, we can't use column heading that
matches anything in the data list. Hence: MyCriteria
The =ISEVEN(ROW(A10)) formula is located in cell A2, but refers to the first
row of data. When the Advanced Filter runs it sequentially applies that
formula to each cell in column a, beginning in A10.....then it internally
applies it to A11, A12, etc.
For A10 the formula returns TRUE (so the row is shown).
For A11 the formula returns FALSE (so the row is hidden).
etc....to the end of the data list
Does that help?
***********
Regards,
Ron
XL2002, WinXP-Pro
Sawyer said:
Ok I think that just when a little over my head, what do you do with the A1:
MyCriteria A2: =ISEVEN(ROW(A10)) where does this part go I think I got the
rest of it ok.
Thanks
Ron Coderre said:
Try this:
Just one rule:
Cells A9 through A11 must contain any kind of value
A1: MyCriteria
A2: =ISEVEN(ROW(A10))
Data|Filter|Advanced Filter
List Range: (select from A9 down as far as you need)
Criteria Range: (Select A1:A2)
Click the [OK] button
The filter will only display even numbered rows under A9
Select the filtered rows under A9
Edit|Delete (Excel will only allow you to delete entire rows when a filter
is engaged)
Is that something you can work with?
***********
Regards,
Ron
XL2002, WinXP-Pro
:
Hello All
I need a script to remove every other line in a excel document, starting
at
say line 10 and delete line 11,13,15 and so on is this something that can
be
done.
Thanks for any help
Scott