+ Reply to Thread
Results 1 to 5 of 5

Deleting a range of blank cells

  1. #1
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Deleting a range of blank cells

    Hi all

    I am looking for some help to delete a range of blank cells. Currently I need to look through a range of cells (say B20:B23) and if any are blank, I need to delete the range from col B to col D.

    I have explained in the attached. So far I have this but I get a type mismatch error:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Deleting a range of blank cells

    Hi maym,
    try this
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Deleting a range of blank cells

    perfect nilem! Thank you!

    Just one further question on this. If all of the cells in the range were blank, so B20:B23 in the above example, how could I also delete the range with headers (which is B19:D19)?

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Deleting a range of blank cells

    maybe so
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Deleting a range of blank cells

    thankyou nilem, this is great! However I have now found that the issue is much larger. I will open a new thread and explain there.

+ 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. Count blank cells in a range and contiguous blank cells also as single cells! Tricky One!
    By SebastianColombia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2015, 02:32 PM
  2. Help with automating deleting blank rows in a named range
    By spanna2000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2012, 01:57 PM
  3. Replies: 15
    Last Post: 04-25-2012, 05:21 PM
  4. deleting blank cells
    By bostonguy in forum Excel General
    Replies: 2
    Last Post: 01-31-2012, 11:47 AM
  5. Deleting blank cells
    By Cononach in forum Excel General
    Replies: 4
    Last Post: 06-02-2007, 05:27 PM
  6. Deleting blank cells
    By savbci in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2005, 02:06 PM
  7. Deleting blank rows in a range or another fill approach
    By BigDave in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2005, 11:05 AM

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