+ Reply to Thread
Results 1 to 3 of 3

Deleting rows in a large data sample

  1. #1
    Registered User
    Join Date
    03-29-2015
    Location
    Europe
    MS-Off Ver
    Office for Mac 2011
    Posts
    2

    Deleting rows in a large data sample

    Hi all,

    What methods do you suggest for deleting rows in the data sample below? I need to get rid of firms with "n.a." values or zeros more than 7 per variable, meaning that I need at least 3 observations per variable. So, for instance if the investments variable has only 2 observations over the 10 years of data that specific firm (row) should be deleted.

    Thanks in advance for your help, I couldn't find any good solutions for this specific problem with the help of mr. google

    Ps. I'm running Office 2011 for Mac
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Deleting rows in a large data sample

    This may work for you:
    in CF2 put in this formula:
    =COUNTIF(BV2:CE2,0)+COUNTIF(BV2:CE2,"n.a.")
    Drag it down to the bottom of your table.

    Now, sort your data using this new column. Delete the rows that have a value of 8 or more in that column, the sorting should have grouped them all together.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    03-29-2015
    Location
    Europe
    MS-Off Ver
    Office for Mac 2011
    Posts
    2

    Re: Deleting rows in a large data sample

    I found a work around for the problem already, but your way looks easier. Thanks a lot!

+ 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: 4
    Last Post: 09-16-2014, 10:48 AM
  2. [SOLVED] Deleting and resizing in a large data set?
    By IamSierraCharlie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2013, 10:24 PM
  3. Deleting large numbers of rows
    By dchun in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-04-2013, 03:53 PM
  4. Replies: 5
    Last Post: 11-14-2011, 04:48 PM
  5. Calculating Multiple Comparisons over Large Sample
    By Pherion in forum Excel General
    Replies: 5
    Last Post: 08-06-2009, 03:25 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