+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : missing values

  1. #1
    Registered User
    Join Date
    04-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    missing values

    Hi,

    I was a large dataset with multiple attributes. Can anyone please tell me how can I remove records with any missing value for any of its attributes. The no. of records is too high to go through each and every record and look for the missing value and then delete that record. Hope there is a work around. Thanks.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,697

    Re: missing values

    You don't offer much information, so I will make some assumptions:

    1. there is a header in row 1
    2. the data, therefore, starts in row 2
    3. you have a key field in column 1
    4. the attributes start in column B and run to, say, column M
    5. there is no more data beyond these attributes

    If any of these assumptions is wron, you will need to make adjustments

    You can add a Helper column at the end of the attributes, in this case in column N

    In cell N2, put the formula: =COUNTIF(B2:M2,"") and drag down to the end of the data.

    You can now use Autofilter and filter on column N for non-zero values.
    Any row displayed will have at least one missing attribute.
    Select all the rows and delete them.
    Turn off the Autofilter
    Delete the Helper column

    Done!

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,697

    Re: missing values

    For more assistance, please upload a sample workbook.

    Regards

  4. #4
    Registered User
    Join Date
    04-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: missing values

    Thank you TMShucks, I was able to follow your instructions and it worked.

+ 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