+ Reply to Thread
Results 1 to 7 of 7

Deleting row if empty cell without using a loop

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Deleting row if empty cell without using a loop

    Hi, I wanted to know if theres a way to allow excel go through a range of cells (A20-A2000) and will delete the row if the cell is empty. I want to know if this can be done without using a loop, because when i use a loop it takes to long for it to go through all the cells and delete the rows. Can someone please help.

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

    Re: Deleting row if empty cell without using a loop

    Maybe you can try this one, on a dummy of your workbook.

    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 Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Deleting row if empty cell without using a loop

    No need for VBa

    Filter Column A for blanks, delete the resulting rows, remove the filter.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    10-10-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Deleting row if empty cell without using a loop

    Thanks oeldere, that did work but how do i have if so i goes through range A:20 - A:2000 only because I only want certian rows being affected.

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

    Re: Deleting row if empty cell without using a loop

    Try this one, on a dummy of your workbook

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-10-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Deleting row if empty cell without using a loop

    Yup, that worked perfectly. You are the man! +rep.

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

    Re: Deleting row if empty cell without using a loop

    Glad i could help.

    Notice, you also get an good non-VBA-solution in #3 from Marcol.

    If you problem is solved, will you also mark the question as solved.

+ 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