+ Reply to Thread
Results 1 to 7 of 7

Deleting all cells in row after blank space

  1. #1
    Registered User
    Join Date
    12-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    37

    Deleting all cells in row after blank space

    In short I was just wondering: is there a simple way to, for each row, move right and check if there's a blank cell and if so delete everything to the right of it? I've come to the conclusion it can't simply be done with a formula. Thanks!

  2. #2
    Registered User
    Join Date
    07-15-2015
    Location
    South East England
    MS-Off Ver
    2010 & 2013
    Posts
    72

    Re: Deleting all cells in row after blank space

    You could create a 'Twin' table that copies the corresponding cell based upon the value of the cell to the left;

    =IF(A1="","",B1)

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Deleting all cells in row after blank space

    Maybe,
    Please Login or Register  to view this content.
    or,
    Please Login or Register  to view this content.
    where we check for all empty cells in Col.A and delete the cell to the right (in Col.B)

    Is that something you can work with?
    Last edited by berlan; 07-15-2015 at 04:11 PM.

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Deleting all cells in row after blank space

    But I think OP wanted everything to the right in that row deleted. My approach:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Deleting all cells in row after blank space

    Or Maybe:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Deleting all cells in row after blank space

    That worked perfectly John, thanks! Thanks to everyone else as well!

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Deleting all cells in row after blank space

    You're welcome. Glad to help out and thanks for the feedback.

+ 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. Blank space behind content when copying Merged cells
    By Furiousbas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2013, 07:21 AM
  2. Replies: 8
    Last Post: 09-09-2013, 08:46 AM
  3. [SOLVED] Deleting an extra space for a lot of cells
    By livifivil in forum Excel General
    Replies: 5
    Last Post: 07-10-2013, 01:25 PM
  4. Invisible blank space in cells after text?
    By AKM1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2013, 09:47 AM
  5. [SOLVED] Use COUNTIF() to find the number of cells not equal to a blank space
    By BNCOXUK in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-21-2012, 06:39 AM
  6. Replies: 12
    Last Post: 09-17-2012, 01:03 PM
  7. Count cells without blank cells or space blanks
    By Zaeguzah in forum Excel General
    Replies: 12
    Last Post: 03-04-2010, 07:03 AM
  8. Replace empty cells with blank space
    By charles.2345 in forum Excel General
    Replies: 10
    Last Post: 08-02-2008, 08:31 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