+ Reply to Thread
Results 1 to 3 of 3

Compare 2 sheets then delete data but only if dates longer than 7 days

  1. #1
    Forum Contributor
    Join Date
    08-02-2005
    Location
    LONDON
    MS-Off Ver
    OFFICE365
    Posts
    167

    Compare 2 sheets then delete data but only if dates longer than 7 days

    What im trying to do is look in sheet called download and compare against data in sheet called Tableau.

    Im comparing data in columns A-D in each row. The data wont be a match line against line on the 2 sheets and it will need to search all down the columns. If the data is in sheet called download but NOT in sheet called TABLEAU then I need that row deleting from the sheet called download, BUT any dates that are all in column C in the workbook called download are within the last 7 days of when the download done I need them ignoring and staying in workbook.

    What I mean is if I do a download say today and I compare all the data. Any data that has a date after 7th April I need ignoring and just keeping in the sheet called download. I then need that to happen on a rolling thing every time I do a download.

  2. #2
    Forum Contributor
    Join Date
    08-02-2005
    Location
    LONDON
    MS-Off Ver
    OFFICE365
    Posts
    167

    Re: Compare 2 sheets then delete data but only if dates longer than 7 days

    I think ive explained it too complicated and may of found easier way if anyone can advise.

    I think that it way be easy as every entry will have a unique time and date in column K and a unique value in column J but im no tech expert.

    Would it work if you looked in book 2 at the value and date and time in columns J & K and compared them with book 1 Column K and column D? if the value was missing from column D then it needs deleting?

    There will be loads of entries all down the workbook but the layout is the same,
    Attached Files Attached Files

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: Compare 2 sheets then delete data but only if dates longer than 7 days

    Is the data in two separate workbooks or on two separate sheets in the same workbook? What are the sheet names?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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. [SOLVED] Formula needed to compare number of days between dates but exclude negative results
    By bcmilne in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-20-2017, 10:23 AM
  2. VBA to compare between two dates (Days)
    By dhiresh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2014, 06:41 AM
  3. [SOLVED] Code to compare data in 2 sheets and delete duplicates
    By amar05 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-13-2013, 03:24 PM
  4. Replies: 2
    Last Post: 05-11-2012, 07:10 PM
  5. Compare two dates and possibly third if it exists to confirm <30 days
    By llamb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2012, 06:32 PM
  6. Compare Data in 2 sheets and delete or move rows
    By tracktor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2011, 12:21 AM
  7. Replies: 6
    Last Post: 06-14-2010, 05:18 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