+ Reply to Thread
Results 1 to 3 of 3

Delete Rows Below if Any Cell in column is not blank:

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    North Carolina
    MS-Off Ver
    Office 2007
    Posts
    79

    Delete Rows Below if Any Cell in column is not blank:

    Hello,
    I think (hope) this one will be easy.

    I'm looking for some code that will accomplish the following:

    If any cell in Column A is not blank, delete the 2nd, 4th and 6th rows below that cell.

    For example:
    If Cell A2 is not blank (it doesn't matter what the content is), delete rows 4, 6 and 8 (Shift Cells Up is OK).

    Continue this pattern for all cells in Column A (I can add lastrow function later if needed).

    The actual number of rows below is not that critical (4th, 6th, 8th, 6th, 8th, 10nth- it doesn't matter)- I'll take whatever code I can get and adapt it to my needs.

    Thanks in advance,

    Chad

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,086

    Re: Delete Rows Below if Any Cell in column is not blank:

    Here a first shot, not sure the result is what you expect.
    It will be nice to have a sample file
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    07-12-2014
    Location
    North Carolina
    MS-Off Ver
    Office 2007
    Posts
    79

    Re: Delete Rows Below if Any Cell in column is not blank:

    PIC,
    This worked perfectly, and thanks a TON for your help. Also- I'm very sorry for the late response. Not cool my part.

    Thanks again.

+ 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. Macro to delete blank rows if column I is blank for the row
    By tiger10012 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-10-2013, 03:01 PM
  2. [SOLVED] VBA Find last row and column that contain data and delete all blank rows and blank columns
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-03-2012, 01:07 PM
  3. Delete Rows if cell value in a column are blank
    By excelrequest in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2010, 01:30 PM
  4. Delete ALL rows that have cell in Column (J) that looks blank
    By Sanne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2010, 11:10 PM
  5. delete rows where a cell is blank in specific column
    By GottaRun in forum Excel General
    Replies: 3
    Last Post: 03-07-2006, 01:40 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