0
Thanks

A few words of thanks would be greatly appreciated.

Excel - Copy rows until a given line




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
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
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).

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!