+ Reply to Thread
Results 1 to 4 of 4

count cells/rows, delete the rest

  1. #1
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    count cells/rows, delete the rest

    Hello,

    I'm looking for a macro that will look at the time in cell A2 then count how many other cells have the same time and hold that value for future use and delete all the rows that do not have the same time.

    thx

    E.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: count cells/rows, delete the rest

    This should do the trick, though I don't think it's very efficient.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: count cells/rows, delete the rest

    I think it's working, but it's still running. I'll let you know in a minute.

    Thx.

    E.

  4. #4
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: count cells/rows, delete the rest

    Ok it finished but it didn't delete any rows. I turned off screen updating. It help a little, but still extremely slow.

    Please Login or Register  to view this content.

+ 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