+ Reply to Thread
Results 1 to 6 of 6

Removing blank cells in a large matrix

  1. #1
    Registered User
    Join Date
    06-12-2009
    Location
    Lincoln, Nebraska
    MS-Off Ver
    Excel 2007
    Posts
    2

    Removing blank cells in a large matrix

    Hi everyone-

    This is my first post on this forum and I am an Excel novice. I have a worksheet with lots of blank cells and I need to shift all the cells with data all the way to the left (to column A). I cannot get the sort or filter functions to do this for me, and I've never used macros but it appears they might be useful for my problem. I'd like to find an automatic process to move the data left rather than drag and drop hundreds of times. I'm attaching the complete xls file for your viewing.

    Thanks for your expertise!!
    Attached Files Attached Files
    Last edited by Bandit; 06-13-2009 at 01:26 AM.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Removing blank cells in a large matrix

    Hi

    I see your post is marked as solved. Could you please share how you solved it? I found your problem interesting and managed to solve it myself but it would be fun to compaire solutions.

    Alf

  3. #3
    Registered User
    Join Date
    06-12-2009
    Location
    Lincoln, Nebraska
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Removing blank cells in a large matrix

    Hi-

    I gave up and spent about 1/2 hour just deleting the blank cells. I played with some "delete empty cell" macros I found on the web but with no success. Did you find a simple solution? My friend lives by Gothenburg and is interviewing for a job at the Gothenburg Arboretum. thanks for your response!

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Removing blank cells in a large matrix

    Hi

    This is the code I used to solve your problem. I ran it on the compleate "weather file" and I got 1054 rows of data so it seem to work ok but you better check the result just to be sure.

    Hope your frien gets a job in Gothenburg!

    Ps I'm using Excel 2003 and you are using 2007 but I don't think there will be any problem

    Strange, previewing post and line "GoTo ****" get changed to "GoTo ****"
    and "****:" changed to "****:"


    Please Login or Register  to view this content.

  5. #5
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Removing blank cells in a large matrix

    Oh, I got it. The swedish word for "End" meens a female of ill repute in english.

    Better write "GoTo stoppa" and "stoppa:" I little bit of swedish will not hurt you

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Removing blank cells in a large matrix

    Here's another way:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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