+ Reply to Thread
Results 1 to 4 of 4

Macro to move data to the left when there are blank cells.

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    21

    Macro to move data to the left when there are blank cells.

    I'm trying to figure out where to start on this one.

    I have a spreadsheet with numerous columns that I'll use to merge into another document. I'm trying to make the creation of the spreadsheet easier buy having columns line up to the same headers (it's related to reporting) however I'd like my end file to have blank cells removed.

    I'm attaching an excel workbook with 2 tabs. The first is before the picture with the second tab being how I'd like it to look after.

    Can someone tell me the best way to create a macro?

    thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Macro to move data to the left when there are blank cells.

    Select your data set, and run this macro.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,806

    Re: Macro to move data to the left when there are blank cells.

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Registered User
    Join Date
    01-20-2014
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Macro to move data to the left when there are blank cells.

    This should work so I'm going to mark it as solved. Thank you for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Function to move text data to left blank cell
    By Karnik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2016, 08:03 PM
  2. Delete cells if blank, shift left until data found
    By wishkey in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2013, 08:22 PM
  3. [SOLVED] Move data row by row to left hand side of an array across blank cells
    By Fred99 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-11-2012, 06:34 PM
  4. Macro to move horizontal data to vertical - in new sheet--excluding blank cells
    By Jackdaddy0711 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2012, 12:54 PM
  5. [SOLVED] Copy cell data from one w/sheet to another with unused cells left blank
    By steve@stanley in forum Excel General
    Replies: 2
    Last Post: 07-06-2012, 10:05 AM
  6. VBA to delete cells that are blank and 0, move to left
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2011, 11:07 AM
  7. delete blank cells and shift data left
    By rhudgins in forum Excel General
    Replies: 7
    Last Post: 07-30-2010, 11:16 PM

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