+ Reply to Thread
Results 1 to 3 of 3

Shifting rows of data so that they all line up in the same column

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    157

    Shifting rows of data so that they all line up in the same column

    I have a report that spits out data and the data is all over the place. I'm trying to write a macro that shifts the data so that it all lines up in the same columns.

    I've already written a macro, but it has proven to be slow and inefficient over a large amount of data. Any help is appreciated. Please see the attached workbook for an example.


    Shift Rows Example.xlsm
    Last edited by Ricker090; 02-28-2012 at 04:56 PM. Reason: Solved

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Shifting rows of data so that they all line up in the same column

    Hi Ricker, perhaps this will suffice? It deletes all blank cells in the range B1:Z? (where ? is determined as the last used row in column A). It then inserts a column before B1 creating the column-gap you want.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Shifting rows of data so that they all line up in the same column

    Yep that helps tons. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1