Jump to content


Separate Segments

  • Please log in to reply
1 reply to this topic

#1 Auto Row move

Auto Row move


  • Members
  • Pip
  • 1 posts

Posted 29 January 2018 - 07:45 PM

I am trying to separate  segments of a list and move each segment to a new location, The segments are always separated by a space, the length of each list varies

Please see an attached list.Attached File  Station List.xlsm   98.16KB   110 downloads

#2 Jonathan


    Forums Administrator

  • Administrators
  • 888 posts

Posted 30 January 2018 - 08:28 PM

You should be able to do this by simply copying and pasting the segments as needed. You can select an entire segment of data by clicking on one of the cells in a segment and pressing <Ctrl>+<A>. You can also select all cells below or to the right of a cell by pressing <Ctrl>+<Shift>+<Down Arrow> and <Ctrl>+<Shift><Right Arrow>.


You can see more about selecting cells in this way in Essential Skills Lesson 2-8 AutoSelect a range of cells.


Automating this process is more complex, but it can be achieved by using macros with relative references. The solution to a very similar problem is shown in: Expert Skills Lesson 9-15 Record a macro with relative references.


I hope this solves the problem, but please feel free to reply if you need any more help with this.

Jonathan is part of the professional team who answer Excel-related questions posted on the ExcelCentral.com forums.
Jonathan also tests our courses prior to publication and has worked on all of our ten world bestselling Excel books for Excel 2007, Excel 2010, Excel 2013, Excel 2016 for Windows and Excel 2016 for Apple Mac. Jonathan has also worked on over 850 video lessons for or video courses covering Excel 2007, Excel 2010 and Excel 2013.
As well as extensive Excel knowledge, Jonathan has worked in the IT world for over thirteen years as a programmer, database designer and analyst for some of the world's largest companies.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users