+ Reply to Thread
Results 1 to 14 of 14

delete empty entire row with condition

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    delete empty entire row with condition

    hello, please help to create a macro codes to delete the entire row

    sample.
    Y
    A

    1
    2
    3


    what
    when

    hoe can i delete the entire empty row and leave only 1 space, however data varies everyday

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: delete empty entire row with condition

    Maybe like this

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: delete empty entire row with condition

    ... or like this (select data block to be treated & click button)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    Re: delete empty entire row with condition

    perfect, i just need 1 space on colunm a need to leave 1 space

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: delete empty entire row with condition

    It is usefull to add to who you are replying.

    If the offered solution don't match your expectations, please add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: delete empty entire row with condition

    Where do you want to leave one empty row?

  7. #7
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85
    in column A Which has data, i need to have 1 space on it. thanks


    it should look like this

    1
    2
    3

    a
    b
    c

    1 space

    Quote Originally Posted by oeldere View Post
    It is usefull to add to who you are replying.

    If the offered solution don't match your expectations, please add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

  8. #8
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85
    in column A Which has data, i need to have 1 space on it. thanks


    it should look like this

    1
    2
    3

    a
    b
    c

    1 space

    Quote Originally Posted by oeldere View Post
    It is usefull to add to who you are replying.

    If the offered solution don't match your expectations, please add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: delete empty entire row with condition

    Post an Excel sheet showing a before and after. I don't understand what you want.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: delete empty entire row with condition

    See my request in #5

    If the offered solution don't match your expectations, please add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

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

    Re: delete empty entire row with condition

    Maybe:

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    Re: delete empty entire row with condition

    here it is.

    thank you
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: delete empty entire row with condition

    NON VBA solution

    b3 = if($A3>0,"",if($A3="",if(countif($A$3:$A3,"")=1,"","deleted"))) and drag down

    after that filter on column B for the text deleted and delete the rows.

  14. #14
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    Re: delete empty entire row with condition

    thank you oeldere, but is that possible to do it in vba?

+ 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. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  2. How to delete entire column if it is Empty
    By zit1343 in forum Excel General
    Replies: 1
    Last Post: 02-21-2013, 08:55 PM
  3. delete entire row if the two rows above are empty
    By jasonarmey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2010, 10:06 AM
  4. Delete entire row on condition
    By bouitac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2009, 04:58 PM
  5. [SOLVED] Can I delete an entire row if condition is not met?
    By Christine in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-04-2006, 04:50 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