BruceEdwards
Board Regular
- Joined
- May 28, 2004
- Messages
- 231
I have a need to strip out selected rows from a spreadsheet, based on the number of rows of data.
Example:
If there are 10 rows of data, I want to keep all of them.
If there are 20 rows of data, I want to keep the first row and every third row thereafter - so that would be rows 1,4,7, etc
If there are 50 rows, first row and every 7th row, so 1,8,15, etc
and so forth.
So a macro to do that and delete all the other rows is what I need.
Thanks for any help.
Example:
If there are 10 rows of data, I want to keep all of them.
If there are 20 rows of data, I want to keep the first row and every third row thereafter - so that would be rows 1,4,7, etc
If there are 50 rows, first row and every 7th row, so 1,8,15, etc
and so forth.
So a macro to do that and delete all the other rows is what I need.
Thanks for any help.