+ Reply to Thread
Results 1 to 8 of 8

delete blank cells and shift data left

  1. #1
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    delete blank cells and shift data left

    How can I remove the spaces in the data in row 4 to look like the data in row 6?
    Attached Files Attached Files
    Last edited by rhudgins; 07-30-2010 at 11:17 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: delete blank cells and shift data left

    As long as they are blank (in your sample they are not)
    select range
    edit goto special blanks/ right click/ delete/ shift cells left
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: delete blank cells and shift data left

    I have tried this. The cells in my range will not be blank..

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: delete blank cells and shift data left

    why are they not blank?

  5. #5
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: delete blank cells and shift data left

    because they are copied as values from a formula. Is there a way to make them blank after they have been copied from the formula?

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: delete blank cells and shift data left

    good point, i never noticed that. hmm and short of selecting deselecting cell isblank returns false hmmmmmmm

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

    Re: delete blank cells and shift data left

    You can select the values, and in the VBE Immediate window, enter
    Please Login or Register  to view this content.
    Then proceed as Martin described.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: delete blank cells and shift data left

    thanks i figured it out

+ 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