+ Reply to Thread
Results 1 to 2 of 2

How to delete rows with missing values as well as all other rows with the same case ID in?

Hybrid View

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to delete rows with missing values as well as all other rows with the same case ID in?

    I have a huge dataset with case IDs to identify what case each data point belongs to. I want to delete all rows of cases that have a missing value in one of their rows.

    So the data are pretty much:

    > CaseID, column2, column3, etc.

    > IDxxxx, something, blah, etc.

    > IDxxxx, something, blah, etc.

    > IDyyyy, ________, blah, etc.

    > IDyyyy, something, blah, etc.

    > etc.

    In this example I'd like to not only have the first row with CaseID 'IDyyyy' removed, but also the second row with 'IDyyyy' as that row also belongs to a case ID of which one of the rows has a missing value.

    Anyone? It would save a ton of manual work and your help would be greatly appreciated.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to delete rows with missing values as well as all other rows with the same case ID

    It will be better if you upload a sample file and highlight those rows that need to go off.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Replies: 5
    Last Post: 11-12-2012, 08:38 PM
  2. Select Case and Delete rows
    By labrooy in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 12-23-2011, 04:30 AM
  3. Delete rows with missing data
    By dmars in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2009, 03:46 PM
  4. Delete rows missing contents in AF then A
    By EJensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2009, 01:23 AM
  5. Macro - Delete Rows of a Certain Letter Case
    By godonnygo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2007, 06:00 AM

Tags for this Thread

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