Excel - Copy rows until a given line

October 2016


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.


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.


Solved by rizvisa1

Related :

This document entitled « Excel - Copy rows until a given line » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.