+ Reply to Thread
Results 1 to 6 of 6

filter/edit time and date

  1. #1
    Registered User
    Join Date
    09-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    filter/edit time and date

    Hello,

    9/18/10 21:32:44 165.138 51.593 0.0004 0.0001 19.8029 2

    I have an spreadsheet with 68,000+ entries in it. As above

    This data was to be recorded every 20 sec. for 24 hours but was mistakenly set to every 2 seconds. The data is then entered into another program.

    The time and date are in the A1 row columb of excel 2003.

    I need to delete 9 rows, then keep a row and delete the next 9, etc. etc.

    With 68,000 plus lines manually deleting could take days.

    Any ideas

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: filter/edit time and date

    Hello and Welcome to the Board,

    Number the first 10 rows 1 through 10. In my test I did this in column A

    After the macro has run you should now have 1 through 10 6800 times. Turn on your filter and on the new column with numbers select all but the number 10, go to Ctrl + G >> check visible cells only and then delete.

    You should now only have row 10's left.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: filter/edit time and date

    Quote Originally Posted by jeffreybrown View Post
    Hello and Welcome to the Board,

    Number the first 10 rows 1 through 10. In my test I did this in column A

    After the macro has run you should now have 1 through 10 6800 times. Turn on your filter and on the new column with numbers select all but the number 10, go to Ctrl + G >> check visible cells only and then delete.

    You should now only have row 10's left.

    Please Login or Register  to view this content.
    this almost worked. First I tried with the whole page and got a prompt about the paste area
    does not match the cut area or something. So I pasted 50 lines into a new spreadshheet and got another error.


    the following was was highlighted yellow in the editer when I hit debug.

    Rng.Copy Range("A" & Lr)


    I did see the row numbers change before the error.
    Last edited by Gerryduda; 09-25-2010 at 07:43 PM.

  4. #4
    Registered User
    Join Date
    09-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: filter/edit time and date

    Thanks for the help!

    I fiddled around a bit and it worked for renumbering the rows.

    You saved me a lot of time.

    Gerry

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: filter/edit time and date

    you could do that with advanced filter
    say you had header in row 1 and wanted rows 2,12,22,...........
    you could put in a spare column say H leave h1 blank in h2 =MOD(ROW(A2),10)=2
    then select a column of your data say A use advanced filter with h1:h2 as criteria range
    Last edited by martindwilson; 09-26-2010 at 05:52 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: filter/edit time and date

    Hi Martin,

    I just tried your suggested way...very slick. Thanks for sharing.

    Jeff

+ 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