+ Reply to Thread
Results 1 to 5 of 5

Delete rows with missing data

  1. #1
    Registered User
    Join Date
    01-13-2009
    Location
    Berkley Heights, NJ
    MS-Off Ver
    Excel 2003
    Posts
    4

    Question Delete rows with missing data

    Help!

    i maintain a training matrix in Excel. Yes, I know it should be in Access but my company has dictated that this is how it should be created. It is large with 250 different job titles and 300 or more training topics. I track the requirements for each job title by entering an x in the appropriate cell. I need to be able to create schedules for a specific job title or titles as some people perform many different roles. for example, in the sample spreadsheat I need to have a macro that will eliminate rows 9 and 12 because they do not pertain to the job roles that are indicated on the form. I only know enough about VB to ge tin trouble i'm afraid.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: Delete rows with missing data

    Non-macro solution:
    1) J3 = "Key"
    2) J4 =COUNTA(E4:I4)
    3) Copy cell J4 down the whole data set
    4) Click Data > Filter > Autofilter to turn on the AutoFilter for this data
    5) Click J3 drop down and select Custom
    6) Is greater than 0

    Now all the rows that don't match are hidden. No VBA needed.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-11-2009
    Location
    Gilbert, Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    82

    re: Delete rows with missing data

    For what its worth, I have a bit of code I've been using to delete rows if it contains a certain letter. I'm not sure if you could insert "cells.blank" or something similar in place of the letter "O". See below in blue... here is my code:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-13-2009
    Location
    Berkley Heights, NJ
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Delete rows with missing data

    Thank you for your help. the filter works just fine. I haven't had a chance to try the code yet. You guys are great.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Delete rows with missing data

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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