+ Reply to Thread
Results 1 to 6 of 6

Delete blanks and/or empty cells

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Delete blanks and/or empty cells

    Hi all,

    I have data that is generated via some bespoke software and as such any blank cells are not seen as blank in excel - so ctrl g & go to blanks takes me to the first cell underneath the data.

    I am using the following code:

    Please Login or Register  to view this content.
    But it does not delete any rows, as it does not see the cells in column M as blank. Is there a way around this? I.e. looking at empty cells or via a filter?

    Many thanks

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,359

    Re: Delete blanks and/or empty cells

    I would suspect that they look blank but are not, are you able to provide a sample from the produced data?
    If things don't change they stay the same

  3. #3
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Delete blanks and/or empty cells

    Hi CheeseSandwich,

    Please see attached
    Attached Files Attached Files

  4. #4
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,359

    Re: Delete blanks and/or empty cells

    There are a few ways to get around this but the one I usually turn to is to run texttocolumns on the range first as below:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,122

    Re: Delete blanks and/or empty cells

    Just the strangest number format setup in your sheet???
    Please Login or Register  to view this content.
    Last edited by sintek; 06-14-2022 at 10:07 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  6. #6
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Delete blanks and/or empty cells

    Yeah it is how it comes out from our bespoke software! So odd and not helpful.

+ 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] Delete duplicates and delete empty cells
    By Mengo85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2015, 07:25 PM
  2. [SOLVED] Move cells adjacent to each other (delete blanks)
    By bbarth in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-10-2015, 11:18 AM
  3. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  4. Replies: 4
    Last Post: 03-08-2014, 02:03 PM
  5. [SOLVED] Delete Blanks and Shift Cells Left with Current Selection
    By Bunnyla in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2012, 02:38 AM
  6. [SOLVED] still have empty cell after run Delete empty cells code
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2012, 04:28 PM
  7. [SOLVED] Help with a macro to delete empty (but not blank) cells OR sort blanks to the bottom
    By Cyali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2012, 09:04 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