Excel - Copy rows until a given line

May 2017




Issue


I'm trying to split one spreadsheet into several ones. 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.

Solution


You have to loop through 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.

Note


Solved by rizvisa1

Related


Published by aakai1056. Latest update on December 22, 2011 at 07:05 AM by aakai1056.
This document, titled "Excel - Copy rows until a given line," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).