+ Reply to Thread
Results 1 to 2 of 2

Find specific time and delete a selection of data

  1. #1
    Registered User
    Join Date
    01-06-2016
    Location
    Derbyshire, England
    MS-Off Ver
    2013
    Posts
    18

    Find specific time and delete a selection of data

    Hi

    I'm trying to figure out a macro to scroll down through a list of data until it finds a specific start date and time and delete all the data previous to it. I then want it to scroll up from the bottom and find a specific end date and time and delete all the date below it.

    For example I have a set of data from 17/02/2016 at 17:53 until 07/04/2016 at 16:58. I only want the data from 26/02/2016 at 01:00 until 06/04/2016 at 00:59.

    I want to determine the start and end timestamp in cells A1 and A2 respectively.

    The date and times are in column A and are in 40 second intervals so the start and end timestamps (cells A1 and A2) will not be the exact values seen in column A. For example I want to type in cell A1 a start time of 26/02/2016 01:00 however the nearest value to this in column A is 26/02/2016 01:00:22.

    I have attached files that show what it looks like before and after.

    Many thanks for your help/suggestions in advance.

    Attached Files Attached Files

  2. #2
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Find specific time and delete a selection of data

    hi this may help you out

    http://www.ozgrid.com/forum/showthread.php?t=41753

+ 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. Combobox selection / Delete row after saving in another sheet / Run-time error '1004'
    By Arvin.Amaro in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2015, 07:27 PM
  2. Replies: 1
    Last Post: 04-01-2014, 08:10 AM
  3. Find rows containing specific data and delete
    By Amber1688 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-28-2014, 04:47 PM
  4. Replies: 4
    Last Post: 11-13-2013, 11:15 AM
  5. Find the row a specific text is in a data set & delete certain rows
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2013, 03:52 PM
  6. Replies: 4
    Last Post: 09-18-2012, 10:54 AM
  7. Find rows containing specific data and delete
    By kmlloyd in forum Excel General
    Replies: 6
    Last Post: 01-06-2010, 03:03 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