Copy rows until meet given line [Solved/Closed]

Report
-
 Stix -
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

1 reply

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
760
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
Thanks a lot!

Stix