+ Reply to Thread
Results 1 to 3 of 3

Delete False data from a column

  1. #1
    Registered User
    Join Date
    10-29-2011
    Location
    Zagreb
    MS-Off Ver
    Excel 2007
    Posts
    15

    Delete False data from a column

    Hi, first off i'm sorry in advanced for my bad English.

    I have a daunting task of sorting some old data, process is going well, except i have some data that needs to be deleted.

    Raw data is in column A:

    Example:

    Sara
    Winkley
    00387-45678
    Boston
    USA

    [single blank cell]

    John
    00458-4543
    Madrid
    Spain

    [single blank cell]

    Mark
    Connor
    00329-5876
    Paris
    France

    [single blank cell]

    ...

    and so on (data is divided by a single blank cell)

    Now data with Sara and Mark are OK, they are complete (five records), data with John are invalid (only four records), data with John needs to be deleted so the row A in a Sheet looks like this:

    Sara
    Winkley
    00387-45678
    Boston
    USA

    [single blank cell]

    Mark
    Connor
    00329-5876
    Paris
    France

    [single blank cell]

    ...

    So basic invalid criteria is only Four records in "a row" between two single blank cells (up and down), five records in "a row" between single blank cells (up and down) are ok records.

    I'm stuck at this and any help would be nice...

    Thank you

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Delete False data from a column

    Try the file below and let me know if this works for you.
    If your data does not start in row 1 then change the 1 in the code where you see A1 to whatever it needs to be.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    10-29-2011
    Location
    Zagreb
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Delete False data from a column

    This code works great, Thank you very much!

+ 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 selection based on True/False value
    By majime01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2015, 12:41 AM
  2. loop through range to copy row if data exists in column, then delete the column
    By wpryan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2015, 05:03 PM
  3. Replies: 1
    Last Post: 06-19-2015, 12:52 AM
  4. Delete entire column if word "False" exists
    By mikey3580 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-09-2014, 02:33 PM
  5. [SOLVED] Automate True-False Test on Long Column of Company Data
    By alcharbonneau in forum Excel General
    Replies: 4
    Last Post: 09-09-2012, 10:59 PM
  6. Delete Worksheet If Checkbox False
    By heliskier89 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-03-2012, 08:13 AM
  7. Replies: 11
    Last Post: 06-27-2008, 04:39 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