Copy rows until meet given line

Solved/Closed
Stix - Aug 5, 2010 at 12:02 PM
 Stix - Aug 6, 2010 at 04:16 AM
Hello,

I'm trying to split one spreadsheet into several spreadsheets.
The splitting has to be done when a certain value is found.

I need to move all rows before the given value to a different file and so on till the end of the file.

I hope I've been clear enough.
Thanks for your help.

Stix

Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Aug 5, 2010 at 12:52 PM
You have to loop thru all the rows. As you loop, mark the starting point and then when you find that flag has been found where new data starts, mark one row less than current spot as end point

Now copy the rows between start point and end point
add it to new worksheet
make the last end point as new start point

Rinse and repeat
0
Thanks a lot!

Stix
0