Results 1 to 78 of 78

Compare dates and times and delete rows

Threaded View

  1. #1
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Compare dates and times and delete rows

    Hi all

    I have a spreadsheet that has 2 pieces of data - one of a actual date and time and the other latest date and time. I need to compare each record's time and keep the record that is closest between actual date and time and latest date and time. If the two match, then I need to keep the record that has the lowest value in Col G. I have attached a sample which hopefully explains.

    Is there a way I can achieve this in VBA?

    Thanks
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Check dates, compare times and then delete rows
    By Estefanus in forum Excel General
    Replies: 3
    Last Post: 08-17-2016, 08:59 AM
  2. [SOLVED] Compare dates and times
    By tnubs in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-24-2014, 02:42 PM
  3. [SOLVED] Compare Dates/Times on Two Separate Sheets
    By dkcel in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-30-2013, 01:30 PM
  4. [SOLVED] Compare Dates and Times
    By saint01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-15-2012, 04:48 PM
  5. macro to delete entire row of duplicate dates and times dd/mm/yyyy hh:mm:ss
    By bradyj2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2011, 05:41 AM
  6. Macro to compare multiple columns then delete rows with older dates
    By azurememories in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2011, 05:43 PM
  7. delete rows containing old dates/times
    By mattmac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-01-2009, 11:08 AM

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