+ Reply to Thread
Results 1 to 18 of 18

Deleting entire row if any specific column is blank

Hybrid View

  1. #1
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,670

    Re: Deleting entire row if any specific column is blank

    Formula changed
    Sub test()
        Dim rng As Range, e
        With Sheets("data").Range("a6").CurrentRegion
            Set rng = .Offset(, .Columns.Count + 2).Range("a1:a2")
            For Each e In Array("=or(ISNUMBER(SEARCH(""cancel"",B7)),AND(J7<>"""",K7<>""""))", _
                                "=and(J7="""",K7="""",iserror(search(""cancel"",b7)))")
                rng(2).Formula = e
                .AdvancedFilter 1, rng
                .Copy Sheets.Add.Range("a3")
                If .Parent.FilterMode Then .Parent.ShowAllData
            Next
            rng.Clear
        End With
    End Sub
    Last edited by jindon; 09-21-2017 at 10:47 PM.

  2. #2
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 365
    Posts
    1,260

    Re: Deleting entire row if any specific column is blank

    Quote Originally Posted by jindon View Post
    So, you have not even tried my code.
    Oh! I used the first code and that worked perfectly.Hopefully,thought the same would be of yours.And requested a slight change in code which I have further posted in Post # 14 which you have already solved in Post #13 except the column width adjustment which is very simple to me.

    Thanx again to you as you were my favourite tutor in solving my complex large data case since inception.
    And thanx to "Karedog" &" alansidman" too who consistently helped in resolving the issue.

    Hence my issue is solved here.A similar format/Structure which is my next issue will be posting in few hours as I am facing in Normalisation of complex large data soon.And hoping the same help. there too with vba.
    Last edited by paradise2sr; 09-21-2017 at 10:57 PM.

+ 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] Deleting Rows where value in a specific column is blank (or a zero)
    By Bigmal70 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2017, 11:25 AM
  2. Deleting rows if specific cell is blank or have specific text
    By JoaoFerreira1985 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2013, 01:18 PM
  3. Macro for Deleting the entire row if first two columns are blank
    By Nithya1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2011, 12:24 PM
  4. comparing the column headers, then deleting the entire column iif duplicates occur
    By vindieselgal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2011, 04:53 AM
  5. Deleting Entire Rows with specific text
    By pcoper114 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-20-2011, 09:33 AM
  6. Deleting entire customer entry if one cell is blank?
    By ocdmachine in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-24-2008, 08:24 PM
  7. Deleting Entire Rows Containing a Specific Value
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-14-2007, 08:22 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